vbscript怎样去年换行

chrome_ 2010-02-11 07:38:50

dim intret
intret = 2
if intret=6 then
location.href="http://www.google.com/"
elseif intret =7 then
location.href="http://www.baidu.com/"
end if

请问怎样把上面语句写到一行里面,能正解执行的,js分号就可以了,vbscript要怎么写呢?
...全文
111 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
leohyf 2010-04-11
  • 打赏
  • 举报
回复
冒号就ok了~~~
Dogfish 2010-02-12
  • 打赏
  • 举报
回复
冒号。

dim intret:intret =6:if intret=6 then:a="http://www.google.com/":else:if intret =7 then:a="http://www.baidu.com/":End if:end if:MsgBox a
chrome_ 2010-02-11
  • 打赏
  • 举报
回复
去掉换行

4,008

社区成员

发帖
与我相关
我的任务
社区描述
它是一种微软环境下的轻量级的解释型语言,它使用COM组件、WMI、WSH、ADSI访问系统中的元素,对系统进行管理。
社区管理员
  • vbScript社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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