奇怪了,为什么“语句未结束”

  
< SCRIPT LANGUAGE = " vbScript " >
HelpUrl
= " http://www.baidu.com "
HelpTopic
= " 百度 "
HelpData
= " <a href= " & HelpUrl & " target=_blank> " & HelpTopic & " </a> "
MsgBox HelpData
</ SCRIPT >
以前一样的代码都不会,现在出错了。
为什么?

 

VBS中&H是16进制的开头字符 
所以& H开头的变量,要在&后面加空格 
<SCRIPT LANGUAGE="vbScript"> 
HelpUrl = "http://www.baidu.com" 
HelpTopic = "百度" 
HelpData = " <a href=" & HelpUrl & " target=_blank>" & HelpTopic & " </a>" 
MsgBox HelpData 
</SCRIPT> 

你可能感兴趣的:(语句)