<?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的匿名函数</title>
	<atom:link href="http://dancewithnet.com/2008/05/07/javascript-anonymous-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/</link>
	<description>WEB Design{HTML:CSS:Javascript:DOM:AJAX:PHP:Usability}/Viewpoint/Photo/Food/Mood</description>
	<lastBuildDate>Sat, 13 Mar 2010 07:52:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：Physure.com &#187; [转]JavaScript的陷阱</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-226301</link>
		<dc:creator>Physure.com &#187; [转]JavaScript的陷阱</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-226301</guid>
		<description>[...] 　　这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 　　这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Physure.com &#187; [转]JavaScript的陷阱</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-226302</link>
		<dc:creator>Physure.com &#187; [转]JavaScript的陷阱</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-226302</guid>
		<description>[...] 　　这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 　　这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Physure.com &#187; [转]Javascript的匿名函数</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-226294</link>
		<dc:creator>Physure.com &#187; [转]Javascript的匿名函数</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-226294</guid>
		<description>[...] http://dancewithnet.com/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dancewithnet.com/" rel="nofollow">http://dancewithnet.com/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：匿名</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-225333</link>
		<dc:creator>匿名</dc:creator>
		<pubDate>Thu, 21 Jan 2010 03:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-225333</guid>
		<description>var f = function fact(x) {

个人觉得这种写法只是jscript的一个bug，根本毫无用处，</description>
		<content:encoded><![CDATA[<p>var f = function fact(x) {</p>
<p>个人觉得这种写法只是jscript的一个bug，根本毫无用处，</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：soog</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-224449</link>
		<dc:creator>soog</dc:creator>
		<pubDate>Fri, 08 Jan 2010 15:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-224449</guid>
		<description>经典 学习了。。。。</description>
		<content:encoded><![CDATA[<p>经典 学习了。。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Silentash-默尘 &#187; Javascript 匿名函数及其代码模式原理</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-223881</link>
		<dc:creator>Silentash-默尘 &#187; Javascript 匿名函数及其代码模式原理</dc:creator>
		<pubDate>Sat, 26 Dec 2009 19:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-223881</guid>
		<description>[...] 上面这段代码会抛出语法错误，这究竟是为什么呢？带着这个问题我们来看看秦歌给出的解答：1.函数字面量：首先声明一个函数对象，然后执行它。2.优先表达式：由于Javascript执行表达式是从圆括号里面到外面，所以可以用圆括号强制执行声明的函数。3.void操作符：用void操作符去执行一个没有用圆括号包围的一个单独操作数。 好吧，先不管解答是否正确，我们把这些放到一边，再来看看函数声明的语法和函数表达式的语法说明：一、函数声明： [...]</description>
		<content:encoded><![CDATA[<p>[...] 上面这段代码会抛出语法错误，这究竟是为什么呢？带着这个问题我们来看看秦歌给出的解答：1.函数字面量：首先声明一个函数对象，然后执行它。2.优先表达式：由于Javascript执行表达式是从圆括号里面到外面，所以可以用圆括号强制执行声明的函数。3.void操作符：用void操作符去执行一个没有用圆括号包围的一个单独操作数。 好吧，先不管解答是否正确，我们把这些放到一边，再来看看函数声明的语法和函数表达式的语法说明：一、函数声明： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：simaopig</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-222686</link>
		<dc:creator>simaopig</dc:creator>
		<pubDate>Wed, 09 Dec 2009 10:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-222686</guid>
		<description>经典，学习了。呵呵。</description>
		<content:encoded><![CDATA[<p>经典，学习了。呵呵。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Supersha</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-222581</link>
		<dc:creator>Supersha</dc:creator>
		<pubDate>Mon, 07 Dec 2009 10:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-222581</guid>
		<description>void function(){
  alert(3);
}()
这种方式第一次见，开眼界了。^_^

使用匿名函数得体的话，将会是非常方便的，比如：
(function(arr){
  var i=0;c=null;
  while(c===arr[i++]){
    window[&quot;is&quot;+c]=function(obj){
        return toString.call(obj)===&quot;[object &quot;+c+&quot;]&quot;;
    }
  }
})([&quot;Object&quot;,&quot;Function&quot;,&quot;Array&quot;,&quot;String&quot;,&quot;Number&quot;]);</description>
		<content:encoded><![CDATA[<p>void function(){<br />
  alert(3);<br />
}()<br />
这种方式第一次见，开眼界了。^_^</p>
<p>使用匿名函数得体的话，将会是非常方便的，比如：<br />
(function(arr){<br />
  var i=0;c=null;<br />
  while(c===arr[i++]){<br />
    window["is"+c]=function(obj){<br />
        return toString.call(obj)===&#8221;[object "+c+"]&#8220;;<br />
    }<br />
  }<br />
})(["Object","Function","Array","String","Number"]);</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：sf</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-207210</link>
		<dc:creator>sf</dc:creator>
		<pubDate>Mon, 17 Aug 2009 08:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-207210</guid>
		<description>太怪的写法，一般人很难掌握的，</description>
		<content:encoded><![CDATA[<p>太怪的写法，一般人很难掌握的，</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：JavaScript的陷阱 &#171; RIA sky</title>
		<link>http://dancewithnet.com/2008/05/07/javascript-anonymous-function/comment-page-1/#comment-197359</link>
		<dc:creator>JavaScript的陷阱 &#171; RIA sky</dc:creator>
		<pubDate>Mon, 22 Jun 2009 07:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://dancewithnet.com/?p=1297#comment-197359</guid>
		<description>[...] 这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 这个例子正式为了实现解决上一个陷阱“变量作用域”的最佳方案。匿名函数详细内容请看《Javascript的匿名函数》。YUI整个库只有YAHOO和YAHOO_config两个全局变量，它正是大量应用匿名函数和命名空间的方法来实现，具体请看《Javascript的一种模块模式》。 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
