银行卡被冻结怎么查询:这句HTML怎样写到response.write里面

来源:百度文库 编辑:高校问答 时间:2024/04/27 22:10:58
<img src="http://www.xxx.com/images/<% =document.name %>" >

上面这句话怎样写到response.write里面,我总是出错,掌握不好双引号和单引号。

response.write("<img src='"http://www.xxx.com/images/"&document.name&"'>")

上面那样写也不对啊,哪位大哥帮下忙

这么写就可以了,不用加括号.

response.write "<img src='"http://www.xxx.com/images/"&document.name&"'>"

response.write(\"<img src=\"\"http://www.xxx.com/images/\"&document.name&\"\"\">\")

前面加个@ 取消转义就行了!! /// 会转义的