document.write(ln)
是在文档流中的当前位置直接添加,如果文档已关闭(加载完成时自动关闭),则相当于重写。

解决方案 »

  1.   

    You should not use the write or writeln methods on the current document after the document has finished loading unless you first call the open method, which clears the current document's window and erases all variables.
      

  2.   

    Amwpfiqvy,偶没能理解。。脑子迟钝如果文档已关闭(加载完成时自动关闭),这句的意思是什么样的?是把ccc放到前面吗?aaa,cccc
    <scritp>
    document.write("bbb");
    </script>可结果还是追加不是重写啊。:-)。您能给偶举例说明吗?
      

  3.   

    你放一个按钮在页面上,在它的onclick事件中调用你就知道效果了。