document 输出 jssong2010年10月1日开发遇到的问题 <script> document.write(“<script>alert(‘aa’);<\/script>”); </script> 因输出的是字符,而”/”在js中有特别意义,故要用”\”进行转义才可。