﻿<?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>《深入理解JavaScript闭包(closure)》的评论</title>
	<atom:link href="http://www.felixwoo.com/archives/247/feed" rel="self" type="application/rss+xml" />
	<link>http://www.felixwoo.com/archives/247</link>
	<description>世界因我存在</description>
	<lastBuildDate>Sun, 01 Jan 2012 01:56:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>作者：匿名</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-4#comment-28248</link>
		<dc:creator>匿名</dc:creator>
		<pubDate>Sun, 01 Jan 2012 01:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-28248</guid>
		<description>纠正一下我刚才最后的alert(h())的执行环境的结论：
应该是f活动对象-&gt;h的活动对象-&gt;alert的活动对象-&gt;window对象</description>
		<content:encoded><![CDATA[<p>纠正一下我刚才最后的alert(h())的执行环境的结论：<br />
应该是f活动对象-&gt;h的活动对象-&gt;alert的活动对象-&gt;window对象</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小李</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-4#comment-28246</link>
		<dc:creator>小李</dc:creator>
		<pubDate>Sun, 01 Jan 2012 01:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-28246</guid>
		<description>对下面这句话有点不太理解：
•假设函数h的作用域是在执行alert(h())确定的，那么此时h的作用域链是：h的活动对象-&gt;alert的活动对象-&gt;window对象。
而我的理解是：
由于变量h=f(1),那么alert(h())中的h(),是调用并执行了f(1),也就是说alert(f(1));
那么在执行的时候，h的作用域链为：h的活动对象-&gt;f的活动对象-&gt;window对象。
也就是说:alert(h())的执行环境和定义时的环境是一样的.
尽管我知道这种理解不对,但我不知道哪个地方我理解错了，能否帮我纠正一下咧？</description>
		<content:encoded><![CDATA[<p>对下面这句话有点不太理解：<br />
•假设函数h的作用域是在执行alert(h())确定的，那么此时h的作用域链是：h的活动对象-&gt;alert的活动对象-&gt;window对象。<br />
而我的理解是：<br />
由于变量h=f(1),那么alert(h())中的h(),是调用并执行了f(1),也就是说alert(f(1));<br />
那么在执行的时候，h的作用域链为：h的活动对象-&gt;f的活动对象-&gt;window对象。<br />
也就是说:alert(h())的执行环境和定义时的环境是一样的.<br />
尽管我知道这种理解不对,但我不知道哪个地方我理解错了，能否帮我纠正一下咧？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：匿名</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-4#comment-21350</link>
		<dc:creator>匿名</dc:creator>
		<pubDate>Wed, 30 Nov 2011 10:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-21350</guid>
		<description>惭愧 现在才学到这里

关于作用域链的图有点问题,javascript应该没有形参的说法,这跟C/C++有点不同,你觉得呢?</description>
		<content:encoded><![CDATA[<p>惭愧 现在才学到这里</p>
<p>关于作用域链的图有点问题,javascript应该没有形参的说法,这跟C/C++有点不同,你觉得呢?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：alex</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-4#comment-18979</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Sat, 19 Nov 2011 05:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-18979</guid>
		<description>所以其实闭包就是js 为了能够在同一页面的任何位置都能访问到页面内某个function内变量的一个方法，所以其实function就是闭包，而现在通常意义上的闭包已经变成访问闭包内变量的方法</description>
		<content:encoded><![CDATA[<p>所以其实闭包就是js 为了能够在同一页面的任何位置都能访问到页面内某个function内变量的一个方法，所以其实function就是闭包，而现在通常意义上的闭包已经变成访问闭包内变量的方法</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：匿名</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-15720</link>
		<dc:creator>匿名</dc:creator>
		<pubDate>Tue, 04 Oct 2011 11:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-15720</guid>
		<description>c没死，b就没死，b没死，i就没死</description>
		<content:encoded><![CDATA[<p>c没死，b就没死，b没死，i就没死</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Ryan</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-15677</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 22 Sep 2011 07:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-15677</guid>
		<description>通过此文，终于理解的JS的闭包，感谢楼主！</description>
		<content:encoded><![CDATA[<p>通过此文，终于理解的JS的闭包，感谢楼主！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：narco</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-14647</link>
		<dc:creator>narco</dc:creator>
		<pubDate>Tue, 24 Aug 2010 08:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-14647</guid>
		<description>真的受益匪浅啊，才看一小段就忍不住先留个脚印。。继续看。。</description>
		<content:encoded><![CDATA[<p>真的受益匪浅啊，才看一小段就忍不住先留个脚印。。继续看。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：diao</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-14562</link>
		<dc:creator>diao</dc:creator>
		<pubDate>Mon, 16 Aug 2010 01:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-14562</guid>
		<description>好像是当前操作对象的索引值减1吧。</description>
		<content:encoded><![CDATA[<p>好像是当前操作对象的索引值减1吧。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Felix</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-14426</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Fri, 06 Aug 2010 03:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-14426</guid>
		<description>感谢你对原创的支持！那个外部链接已经更新。</description>
		<content:encoded><![CDATA[<p>感谢你对原创的支持！那个外部链接已经更新。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：好事者</title>
		<link>http://www.felixwoo.com/archives/247/comment-page-3#comment-14405</link>
		<dc:creator>好事者</dc:creator>
		<pubDate>Wed, 04 Aug 2010 19:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://219.234.88.162:81/?p=247#comment-14405</guid>
		<description>http://zh.wikipedia.org/zh-cn/%E9%97%AD%E5%8C%85_%28%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6%29

不好意思，劳驾你看看这个wikipedia的页面，最后一个，外部链接的第三个。

我不知道怎样修改wikipedia，只能把这个情况跟你说明一下。</description>
		<content:encoded><![CDATA[<p><a href="http://zh.wikipedia.org/zh-cn/%E9%97%AD%E5%8C%85_%28%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6%29" rel="nofollow">http://zh.wikipedia.org/zh-cn/%E9%97%AD%E5%8C%85_%28%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6%29</a></p>
<p>不好意思，劳驾你看看这个wikipedia的页面，最后一个，外部链接的第三个。</p>
<p>我不知道怎样修改wikipedia，只能把这个情况跟你说明一下。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

