asp 中response.write中包含的引号的怎么输出?
<divclass="h2_cat"onmouseover="this.className='h2_catactive_cat'"onmouseout="this.cla...
<div class="h2_cat" onmouseover="this.className='h2_cat active_cat'" onmouseout="this.className='h2_cat'">
这条语句在response.write中怎么输出
response.write "这里应该怎么写单引号和双引号" 展开
这条语句在response.write中怎么输出
response.write "这里应该怎么写单引号和双引号" 展开
3个回答
展开全部
如果是VBS语法,就把原来一个双引号变成两个双引号,如
response.write "<div class=""h2_cat"" onmouseover=""this.className='h2_cat active_cat'"" onmouseout=""this.className='h2_cat'"">"
如果是JS语法,就用\转义,如
response.write("<div class=\"h2_cat\" onmouseover=\"this.className='h2_cat active_cat'\" onmouseout=\"this.className='h2_cat'\">");
response.write "<div class=""h2_cat"" onmouseover=""this.className='h2_cat active_cat'"" onmouseout=""this.className='h2_cat'"">"
如果是JS语法,就用\转义,如
response.write("<div class=\"h2_cat\" onmouseover=\"this.className='h2_cat active_cat'\" onmouseout=\"this.className='h2_cat'\">");
展开全部
<%
response.write "<div class="&Chr(34)&"h2_cat"&Chr(34)&" onmouseover="&Chr(34)&"this.className='h2_cat active_cat'"&Chr(34)&" onmouseout="&Chr(34)&"this.className='h2_cat'"&Chr(34)&">"
%>
单引号直接输出 双引号chr(34)
response.write "<div class="&Chr(34)&"h2_cat"&Chr(34)&" onmouseover="&Chr(34)&"this.className='h2_cat active_cat'"&Chr(34)&" onmouseout="&Chr(34)&"this.className='h2_cat'"&Chr(34)&">"
%>
单引号直接输出 双引号chr(34)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
转义字符
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询