没问题,测试通过!
<script>
document.write("#")
</script>

解决方案 »

  1.   

    是在jscript中有这样一句
    writeln('<!--#include file=conn.asp-->');
    只要取消#就不出错,加了就错,我该怎么办拉,帮帮忙吧:)
      

  2.   

    经测试
    writeln('<!--#include file=conn.asp-->');
    出错
    document.writeln('<!--#include file=conn.asp-->');
    不出错!
      

  3.   

    '<!--#include...' is a server side include,when a asp page is loading, IIS will replace the tag with the content in the file you specified, to your code, content should be the characters stored in the file 'conn.asp', when the page is loaded by IE the document.write method will be changed to something else, you can use view source menu item of IE context menu, to see what it is changed to.