首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

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

2012-02-27 
asp中调用javascript时,标点符号的的使用格式?看了一断代码,标点符号把我搞晕了,代码如下:response.Write(

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个 ",这样输出的结果显示一个 ",你也可以使用 '
[解决办法]
理解正确。
我们这片管这个叫转义输出。

热点排行