在ASP response.write "" 的问题

来源:百度知道 编辑:UC知道 时间:2024/05/26 09:50:38
<a href="#" onClick="openwin('http://xxx.cn/new2.asp?id=<%=username%>')">
写在response.write "" 里面应该要怎么写呢?
谢谢,请高手们回答下噢。

response.write "<a href=# onClick=""openwin('http://xxx.cn/new2.asp?id="&username&"')"">"

想把html的双引号写在response.write "" 里面,有两种方法
一是像回答者: lzp4881这样,写成两个双引号,没问题
另外一种是 用单引号代替,
甚至不加引号,html也能正常使用,
就看你喜欢用哪种了,我喜欢用单引号代替,看着简洁。