﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-【 生命是幻觉 】-最新评论</title><link>http://www.cnitblog.com/stephanie13/CommentsRSS.aspx</link><description>『 Life is an unreturnable pilgrimage  』-  One day I will fly away, leave all this to yesterday.</description><language>zh-cn</language><pubDate>Tue, 11 Mar 2008 14:10:25 GMT</pubDate><lastBuildDate>Tue, 11 Mar 2008 14:10:25 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 网页代码上遇见的奇怪问题！非常奇怪！【女生是菜鸟】</title><link>http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40813</link><dc:creator>lot</dc:creator><author>lot</author><pubDate>Tue, 11 Mar 2008 23:30:00 GMT</pubDate><guid>http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40813</guid><description><![CDATA[<a target="_new" href="http://javascript.about.com/library/blwrite.htm">http://javascript.about.com/library/blwrite.htm</a><br>这篇文章也说:当前页面加载完毕后，再执行任何document.write都会建立一个新的document并覆盖掉当前页面的所有内容。<img src ="http://www.cnitblog.com/stephanie13/aggbug/40813.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephanie13/" target="_blank">lot</a> 2008-03-12 07:30 <a href="http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40813#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 网页代码上遇见的奇怪问题！非常奇怪！【女生是菜鸟】</title><link>http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40812</link><dc:creator>lot</dc:creator><author>lot</author><pubDate>Tue, 11 Mar 2008 23:26:00 GMT</pubDate><guid>http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40812</guid><description><![CDATA[当 document.write 作用于已经加载完毕的文档，比如上文中的 openwindow 事件中时，它会先重写整个文档。IE可能再重写前会先清除整个文档。<br><br>对于博主的代码来说。IE就是把现用的html和js代码全部清除后，再输出“您的详细资料”。这样document后面的if已经被write函数从文档中清除了，所以就不会执行。<br><br>document.write的工作机制还没有找到微软或w3c的官方论证，所以还是猜测。参考这篇文章：<br><a target="_new" href="http://java-programming.suite101.com/article.cfm/javascript_documentwrite_tutorial">http://java-programming.suite101.com/article.cfm/javascript_documentwrite_tutorial</a><img src ="http://www.cnitblog.com/stephanie13/aggbug/40812.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephanie13/" target="_blank">lot</a> 2008-03-12 07:26 <a href="http://www.cnitblog.com/stephanie13/archive/2008/03/12/40803.html#40812#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 网页代码上遇见的奇怪问题！非常奇怪！【女生是菜鸟】</title><link>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40808</link><dc:creator>stephanie瑶瑶</dc:creator><author>stephanie瑶瑶</author><pubDate>Tue, 11 Mar 2008 15:29:00 GMT</pubDate><guid>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40808</guid><description><![CDATA[IE的d.write可能会重写当前的document<br><br>能具体说明一下吗？<img src ="http://www.cnitblog.com/stephanie13/aggbug/40808.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephanie13/" target="_blank">stephanie瑶瑶</a> 2008-03-11 23:29 <a href="http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40808#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 网页代码上遇见的奇怪问题！非常奇怪！【女生是菜鸟】</title><link>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40807</link><dc:creator>lot</dc:creator><author>lot</author><pubDate>Tue, 11 Mar 2008 15:20:00 GMT</pubDate><guid>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40807</guid><description><![CDATA[感觉和document.write的工作机制有关。IE的d.write可能会重写当前的document，具体机制因很少用这个函数，还不清楚。一般是考虑用innerHtml系来完成这类任务。<img src ="http://www.cnitblog.com/stephanie13/aggbug/40807.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephanie13/" target="_blank">lot</a> 2008-03-11 23:20 <a href="http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40807#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 网页代码上遇见的奇怪问题！非常奇怪！【女生是菜鸟】</title><link>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40806</link><dc:creator>lot</dc:creator><author>lot</author><pubDate>Tue, 11 Mar 2008 15:10:00 GMT</pubDate><guid>http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40806</guid><description><![CDATA[估计是document.write引起的问题。原因还不清楚，而且firefox没有这个问题，我的解决方法是：<br><br>    var out = &quot;&quot;;<br>    out += &quot;&lt;h1&gt;&lt;center&gt;您的详细资料&lt;/center&gt;&lt;/h1&gt;&quot;;<br>    out += &quot;&lt;br&gt;&lt;p&gt;&lt;center&gt;您的姓名是：&quot;+userName+&quot;&lt;/center&gt;&lt;/p&gt;&quot;;<br>    if(document.myForm.jc.checked==true) {<br>        out += &quot;&lt;p&gt;&lt;center&gt;您具有：大专学历&lt;/center&gt;&lt;/p&gt;&quot;;<br>    }<br>    document.write(out);<img src ="http://www.cnitblog.com/stephanie13/aggbug/40806.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/stephanie13/" target="_blank">lot</a> 2008-03-11 23:10 <a href="http://www.cnitblog.com/stephanie13/archive/2008/03/11/40803.html#40806#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>