一般制作JS调用的时候需要!
- <%
- function htmltojs(str)
- dim html
- html=replace(str,chr(10),"")
- html=replace(html,chr(13),"")
- html=replace(html,"\","\\")
- html=replace(html,"/","\/")
- html=replace(html,"""","\""")
- html="document.writeln("""&html&""");"
- htmltojs=html
- end function
- response.write htmltojs("<a href=""add.asp"">添加文章</a>")
- %>

0条记录访客评论