<?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: 好吧，好久没聊js了</title>
	<atom:link href="http://www.surfchen.org/archives/367/feed" rel="self" type="application/rss+xml" />
	<link>http://www.surfchen.org/archives/367</link>
	<description>sc</description>
	<lastBuildDate>Thu, 19 Jan 2012 22:40:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: 神仙</title>
		<link>http://www.surfchen.org/archives/367/comment-page-1#comment-11041</link>
		<dc:creator>神仙</dc:creator>
		<pubDate>Mon, 02 Feb 2009 07:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.surfchen.org/?p=367#comment-11041</guid>
		<description>closure 不能 this 了感觉不爽啊</description>
		<content:encoded><![CDATA[<p>closure 不能 this 了感觉不爽啊</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: surfchen</title>
		<link>http://www.surfchen.org/archives/367/comment-page-1#comment-11036</link>
		<dc:creator>surfchen</dc:creator>
		<pubDate>Fri, 30 Jan 2009 03:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.surfchen.org/?p=367#comment-11036</guid>
		<description>确实要加分号。

原来\n不一定会作为表达式的结束符。ok\n(会被作为函数运行。第一次知道。

以前觉得js完全不需要加分号，看来这个想法是错的了。我随手写了那几段代码出来，也没做测试。</description>
		<content:encoded><![CDATA[<p>确实要加分号。</p>
<p>原来\n不一定会作为表达式的结束符。ok\n(会被作为函数运行。第一次知道。</p>
<p>以前觉得js完全不需要加分号，看来这个想法是错的了。我随手写了那几段代码出来，也没做测试。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fmfsaisai</title>
		<link>http://www.surfchen.org/archives/367/comment-page-1#comment-11035</link>
		<dc:creator>fmfsaisai</dc:creator>
		<pubDate>Fri, 30 Jan 2009 01:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.surfchen.org/?p=367#comment-11035</guid>
		<description>错了，回复的第一段代码要把分号去掉，否则就看不出问题了</description>
		<content:encoded><![CDATA[<p>错了，回复的第一段代码要把分号去掉，否则就看不出问题了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fmfsaisai</title>
		<link>http://www.surfchen.org/archives/367/comment-page-1#comment-11034</link>
		<dc:creator>fmfsaisai</dc:creator>
		<pubDate>Fri, 30 Jan 2009 01:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.surfchen.org/?p=367#comment-11034</guid>
		<description>挑点刺
对于不加分号的语句的第一段代码来说
肯定是出错的

这样改不会出错但是运行会和预期不一样
var str=&#039;ok&#039;;
(function (str) {
document.onmousedown=function (e) {
alert(str)
}
}(str))
str=null


只有这样才是对的...
var str=&#039;ok&#039;
void function (str) {
document.onmousedown=function (e) {
alert(str)
}
}(str)
str=null

不知道为什么..</description>
		<content:encoded><![CDATA[<p>挑点刺<br />
对于不加分号的语句的第一段代码来说<br />
肯定是出错的</p>
<p>这样改不会出错但是运行会和预期不一样<br />
var str=&#8217;ok&#8217;;<br />
(function (str) {<br />
document.onmousedown=function (e) {<br />
alert(str)<br />
}<br />
}(str))<br />
str=null</p>
<p>只有这样才是对的&#8230;<br />
var str=&#8217;ok&#8217;<br />
void function (str) {<br />
document.onmousedown=function (e) {<br />
alert(str)<br />
}<br />
}(str)<br />
str=null</p>
<p>不知道为什么..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

