一条语句问题,再请教!

helloha2013 2004-03-22 02:12:50
if instr(shopnamerep,"<img src=")<>"" then
replace(shopnamerep,"<img src=""","<img src=""/")
end if
或if instr(picpath,"<img src=")<>"" then
replace(picpath,"<img src=","<img src=/")
end if
多报Microsoft VBScript 编译器错误 错误 '800a0414'

调用子程序时不能使用括号

/bbs/admin_user.asp,行 712

replace(shopnamerep,"<img src=""","<img src=""/")
-------------------------------------------------^
我想是转义符不对,但不知怎么改?


...全文
28 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
qzriso 2004-03-22
  • 打赏
  • 举报
回复
if instr(shopnamerep,"<img src=""")>0 then
shopnamerep=replace(shopnamerep,"<img src=""","<img src=""/")
end if
helloha2013 2004-03-22
  • 打赏
  • 举报
回复
结不了啊.
helloha2013 2004-03-22
  • 打赏
  • 举报
回复
烦不了了,结账
GoodyeahApple 2004-03-22
  • 打赏
  • 举报
回复
sorry,
if instr(shopnamerep,"<img src=""")<>0 then
shopnamerep=replace(shopnamerep,"<img src=""","<img src=""/")
end if
GoodyeahApple 2004-03-22
  • 打赏
  • 举报
回复
if instr(shopnamerep,"<img src=")<>0 then
shopnamerep=replace(shopnamerep,"<img src=""","<img src=""/")
end if
helloha2013 2004-03-22
  • 打赏
  • 举报
回复
还是不行啊
whghwujx 2004-03-22
  • 打赏
  • 举报
回复
我也不知道,帮你顶
xkou 2004-03-22
  • 打赏
  • 举报
回复
replace(shopnamerep,"<img src=" + chr(34)+chr(34) ,"<img src="+ chr(34)+chr(34)+ "/")

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧