当前位置: 代码迷 >> ASP >> asp中调用javascript时,标点符号的的使用格式?解决方案
  详细解决方案

asp中调用javascript时,标点符号的的使用格式?解决方案

热度:293   发布时间:2012-02-27 10:00:22.0
asp中调用javascript时,标点符号的的使用格式?
看了一断代码,标点符号把我搞晕了,代码如下:

response.Write( "document.write( " " <span   style=\ " "font-size:12px;   text-align:center;\ " "> <a   href=\ " "#\ " "   onClick=\ " "openServicesWindow(0,   ' "&rst( "serverID ")& " ')\ " "   style=\ " "text-decoration:none;   color:#0000FF;\ " "> "&rst( "serverName ")& "[在线] </a> </span> " "); ")

一会两个引号,一会一个引号,这个标点符号到底是怎么用的,还请多多指教,谢谢。

------解决方案--------------------
response.Write( "document.write( " " <span style=\ " "font-size:12px; text-align:center;\ " "> <a href=\ " "#\ " " onClick=\ " "openServicesWindow(0, ' "&rst( "serverID ")& " ')\ " " style=\ " "text-decoration:none; color:#0000FF;\ " "> "&rst( "serverName ")& "[在线] </a> </span> " "); ")

"中再2个 ",这样输出的结果显示一个 ",你也可以使用 '
------解决方案--------------------
理解正确。
我们这片管这个叫转义输出。
  相关解决方案