<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DreamersLab &#187; scope</title>
	<atom:link href="http://dreamerslab.com/blog/tag/scope/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamerslab.com/blog</link>
	<description>No Boundaries No Limitation</description>
	<lastBuildDate>Thu, 18 Sep 2014 04:36:32 +0000</lastBuildDate>
	<language>tw</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Javascript function scopes 和 closures</title>
		<link>http://dreamerslab.com/blog/tw/javascript-function-scopes-and-closures/</link>
		<comments>http://dreamerslab.com/blog/tw/javascript-function-scopes-and-closures/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 11:06:22 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[scope]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://dreamerslab.com/blog/?p=726</guid>
		<description><![CDATA[Javascript 用 function 來當作一個 scope. 在 function 裡面再宣告一個 function 的話就會產生一個新的 scope. 我們來看看下面的範例吧. 結果 從上面的結果可以清楚的看到在內層 scope 沒有用 var 宣告的變數會複寫掉外層 scope 的變數. 在內層裡用 var 開頭宣告的變數會變成 local 變數並只存在這一個 scope( function ) 裡面. 這也被叫做 closure. 那我們又是在何時會用到以及如何使用 closure 呢? 在物件導向程式設計裡通常是用 class attributes 來儲存資料. 在 Javascript &#8230; <a href="http://dreamerslab.com/blog/tw/javascript-function-scopes-and-closures/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://dreamerslab.com/blog/tw/javascript-function-scopes-and-closures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
