js拼接html注意问题示例探讨
2014-07-15 14:28
519 查看
你想让别人给你解决什么,
adress是什么,www.usus.cc
var hrf='<a href="javascript:;" rel="external nofollow" rel="external nofollow" onclick="window.open('+url+','','"height=625,width=830,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"')">'+adress+'</a>';下面又出现adress[j]。用法完全不对。
msg+='<tr style="height:25px"><td align ="left" style="width:6%;color:Black">'+coal[j]+'</td><td align ="left" style="width:8%;color:Black">'+url+hrf+'</td><td align ="left" style="width:24%;color:Black">'+adress[j]+'</td><td align ="left" style="width:12%;color:Green;font-weight
:bold">'+ssz[j]+'</td>';追问
我是想把www.usus.cc
<a href="javascript:;" rel="external nofollow" rel="external nofollow" onclick="window.open('+url+','','"height=625,width=830,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"')">'+adress+'</a>这句外面加个单引号,可是试了好多次都不成功,这句话加上单引号,里面改怎么变化呢
回答www.usus.cc
用转义符, \" = ", \' = '
追问
转义符不太会用,能给个列子吗
回答www.usus.cc
var zz ="<tr style=\"height:25px\">";
adress是什么,www.usus.cc
var hrf='<a href="javascript:;" rel="external nofollow" rel="external nofollow" onclick="window.open('+url+','','"height=625,width=830,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"')">'+adress+'</a>';下面又出现adress[j]。用法完全不对。
msg+='<tr style="height:25px"><td align ="left" style="width:6%;color:Black">'+coal[j]+'</td><td align ="left" style="width:8%;color:Black">'+url+hrf+'</td><td align ="left" style="width:24%;color:Black">'+adress[j]+'</td><td align ="left" style="width:12%;color:Green;font-weight
:bold">'+ssz[j]+'</td>';追问
我是想把www.usus.cc
<a href="javascript:;" rel="external nofollow" rel="external nofollow" onclick="window.open('+url+','','"height=625,width=830,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"')">'+adress+'</a>这句外面加个单引号,可是试了好多次都不成功,这句话加上单引号,里面改怎么变化呢
回答www.usus.cc
用转义符, \" = ", \' = '
追问
转义符不太会用,能给个列子吗
回答www.usus.cc
var zz ="<tr style=\"height:25px\">";
相关文章推荐
- js拼接html注意问题示例探讨
- js拼接html注意问题示例探讨
- js关于字符长度限制的问题示例探讨
- 探讨js字符串数组拼接的性能问题
- js关于字符长度限制的问题示例探讨
- js 拼接HTML字符串 onclick事件传多个参数问题
- JS中拼接HTML遇到转译单双引号问题
- html拼接数据的时候一定要注意null值的问题
- js中字符串拼接需注意的问题
- 探讨js字符串数组拼接的性能问题
- js拼接html字符串的注意事项
- 使用Themeleaf时, HTML内嵌的JS代码需要注意< 和 >的问题
- 关于JS脚本中拼接Html代码注意事项
- js中拼接HTML方式方法及注意事项
- js中符号转意问题示例探讨
- 探讨js字符串数组拼接的性能问题
- js拼接html字符串注意事项
- 利用ASP.NET和AJAX解决手工拼接HTML问题
- js变量使用request.getAttribute方法注意null的问题