一定要用document.write??用innerHTML行么?

解决方案 »

  1.   

    问题出在document.write上ResYou 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.In general, it is not necessary to open the document using the document.open method, since the document.write method will automatically open the file and discard (erase) the contents. However, after the write is complete, you need to close the document by using the document.close method. In some browsers, the results of the write may not be completely displayed, due to buffering, until the close occurs. 
      

  2.   

    当你调用document.write后你的那段程序就不存在了
      

  3.   

    网上有很多类似的帮助文档,搜一下应该就能搜到,找不到的话留个 E-MAIL,我可以给你发一个