<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《写一个js文件的loader》的评论</title>
	<atom:link href="http://www.frontendcodes.com/?feed=rss2&#038;p=56" rel="self" type="application/rss+xml" />
	<link>http://www.frontendcodes.com/?p=56</link>
	<description>路漫漫其修远兮</description>
	<lastBuildDate>Tue, 27 Oct 2020 16:09:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>作者：MK</title>
		<link>http://www.frontendcodes.com/?p=56#comment-14</link>
		<dc:creator>MK</dc:creator>
		<pubDate>Wed, 09 Feb 2011 12:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.frontendcodes.com/?p=56#comment-14</guid>
		<description>script.onload还...真不知道...没想过...mm吉祥。</description>
		<content:encoded><![CDATA[<p>script.onload还&#8230;真不知道&#8230;没想过&#8230;mm吉祥。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：最爱柠檬</title>
		<link>http://www.frontendcodes.com/?p=56#comment-13</link>
		<dc:creator>最爱柠檬</dc:creator>
		<pubDate>Wed, 09 Feb 2011 12:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.frontendcodes.com/?p=56#comment-13</guid>
		<description>我更喜欢使用DOM方式添加脚本。
主要的问题在于，使用document.write输出script标签，只能在文档流没有结束前使用。
如果文档已经加载完毕，通过某个事件（例如鼠标点击按钮）加载进一个script，就不能用document.write
至于判断是否加载完，可以用script.onload=script.onreadystatechange=function(){}</description>
		<content:encoded><![CDATA[<p>我更喜欢使用DOM方式添加脚本。<br />
主要的问题在于，使用document.write输出script标签，只能在文档流没有结束前使用。<br />
如果文档已经加载完毕，通过某个事件（例如鼠标点击按钮）加载进一个script，就不能用document.write<br />
至于判断是否加载完，可以用script.onload=script.onreadystatechange=function(){}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
