document 输出 js


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

<script>
document.write(“<script>alert(‘aa’);<\/script>”);

</script>

因输出的是字符,而”/”在js中有特别意义,故要用”\”进行转义才可。