<?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>Comments on: JavaScript 循环的Break 和 Continue</title>
	<atom:link href="http://www.prglab.com/blog/js-tutorial/js-loopbreak/feed" rel="self" type="application/rss+xml" />
	<link>http://www.prglab.com/blog</link>
	<description>多读书，读好书</description>
	<lastBuildDate>Sat, 24 Dec 2011 06:41:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: anyone</title>
		<link>http://www.prglab.com/blog/js-tutorial/js-loopbreak/comment-page-1#comment-3178</link>
		<dc:creator>anyone</dc:creator>
		<pubDate>Fri, 01 Jul 2011 17:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://prglab.com/blog/?page_id=17#comment-3178</guid>
		<description>回复新手：

你的程序顺序搞错了。i=3的时候，你已经先写了document.write，然后跳出本次循环就没有意义了。应该如下这样：

	var i=-5
	do {
		i = i+1;
		if(i==3){continue}
		document.write(&quot;The number is&quot; + i);
		document.write(&quot;&quot;)
	}
	while (i&lt;=10)</description>
		<content:encoded><![CDATA[<p>回复新手：</p>
<p>你的程序顺序搞错了。i=3的时候，你已经先写了document.write，然后跳出本次循环就没有意义了。应该如下这样：</p>
<p>	var i=-5<br />
	do {<br />
		i = i+1;<br />
		if(i==3){continue}<br />
		document.write(&#8220;The number is&#8221; + i);<br />
		document.write(&#8220;&#8221;)<br />
	}<br />
	while (i&lt;=10)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zz</title>
		<link>http://www.prglab.com/blog/js-tutorial/js-loopbreak/comment-page-1#comment-3121</link>
		<dc:creator>zz</dc:creator>
		<pubDate>Fri, 17 Jun 2011 10:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://prglab.com/blog/?page_id=17#comment-3121</guid>
		<description>你上面写错了一个地方，应该是i++,不是i+1</description>
		<content:encoded><![CDATA[<p>你上面写错了一个地方，应该是i++,不是i+1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 新手</title>
		<link>http://www.prglab.com/blog/js-tutorial/js-loopbreak/comment-page-1#comment-3012</link>
		<dc:creator>新手</dc:creator>
		<pubDate>Fri, 01 Apr 2011 02:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://prglab.com/blog/?page_id=17#comment-3012</guid>
		<description>


var i=-5
do
{
document.write(&quot;The number is&quot; + i)
document.write(&quot;&quot;)
i=i+1
if(i==3){continue}
}
while (i&lt;10)




可以问一个很弱智是问题么.我是个新手 上面的代码为什么他不打断3呢...如果我换成break 2以后的都不会显示了?是不是逻辑出错,,还是这样的循环不能用这样的语句!</description>
		<content:encoded><![CDATA[<p>var i=-5<br />
do<br />
{<br />
document.write(&#8220;The number is&#8221; + i)<br />
document.write(&#8220;&#8221;)<br />
i=i+1<br />
if(i==3){continue}<br />
}<br />
while (i&lt;10)</p>
<p>可以问一个很弱智是问题么.我是个新手 上面的代码为什么他不打断3呢&#8230;如果我换成break 2以后的都不会显示了?是不是逻辑出错,,还是这样的循环不能用这样的语句!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubbish</title>
		<link>http://www.prglab.com/blog/js-tutorial/js-loopbreak/comment-page-1#comment-2573</link>
		<dc:creator>rubbish</dc:creator>
		<pubDate>Fri, 13 Aug 2010 02:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://prglab.com/blog/?page_id=17#comment-2573</guid>
		<description>趋近于相等</description>
		<content:encoded><![CDATA[<p>趋近于相等</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BAI</title>
		<link>http://www.prglab.com/blog/js-tutorial/js-loopbreak/comment-page-1#comment-1093</link>
		<dc:creator>BAI</dc:creator>
		<pubDate>Wed, 06 Aug 2008 13:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://prglab.com/blog/?page_id=17#comment-1093</guid>
		<description>和C很像！</description>
		<content:encoded><![CDATA[<p>和C很像！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

