<?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>BLACKBING &#187; plugin</title>
	<atom:link href="http://blog.blackbing.net/category/jquery/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.blackbing.net</link>
	<description>紀錄一些生活或工作的雜事，偶爾會寫一些前端開發的心得</description>
	<lastBuildDate>Sun, 15 Aug 2010 06:24:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery clone object plugin</title>
		<link>http://blog.blackbing.net/2010/01/21/jquery-clone-object-plugin/</link>
		<comments>http://blog.blackbing.net/2010/01/21/jquery-clone-object-plugin/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:10:02 +0000</pubDate>
		<dc:creator>BLACKBING</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.blackbing.net/?p=418</guid>
		<description><![CDATA[Javascript 在指定物件為變數時是傳「reference」，若不知道這個特性很容易搞不清楚你的值為啥被改掉了，jQuery的extend函式可以做deep Clone，也就是遞迴將物件裡頭的任一成員都做clone，但針對array好像有點問題，因此我寫了一支小function來呼叫，以後要做cloneObject時可以直接服用。 /* * cloneObject 會完整clone一個全新的Object * 若傳入的object是array, 則會回傳array */ (function($) { $.extend($, { cloneObject : function(obj){ var newObj; if($.isArray(obj)){ newObj = []; for(var i=0; i&#60;obj.length; i++){ newObj.push(arguments.callee(obj[i])); } return newObj; }else{ newObj = {}; return $.extend(true, newObj, obj); } } }); })(jQuery)]]></description>
			<content:encoded><![CDATA[<p>Javascript 在指定物件為變數時是傳「reference」，若不知道這個特性很容易搞不清楚你的值為啥被改掉了，jQuery的<a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2FwaS5qcXVlcnkuY29tL2pRdWVyeS5leHRlbmQv">extend</a>函式可以做deep Clone，也就是遞迴將物件裡頭的任一成員都做clone，但針對array好像有點問題，因此我寫了一支小function來呼叫，以後要做cloneObject時可以直接服用。</p>
<p><pre class="brush: jscript;">
/*
 * cloneObject 會完整clone一個全新的Object
 * 若傳入的object是array, 則會回傳array
 */
(function($) {
	$.extend($, {
		cloneObject : function(obj){
			var newObj;
			if($.isArray(obj)){
				newObj = [];
				for(var i=0; i&lt;obj.length; i++){
					newObj.push(arguments.callee(obj[i]));
				}
				return newObj;
			}else{
				newObj = {};
				return $.extend(true, newObj, obj);
			}
		}
	});
})(jQuery)
</pre></p>
 <img src="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=418" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.blackbing.net/2010/01/21/jquery-clone-object-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery plugin 收集</title>
		<link>http://blog.blackbing.net/2009/05/29/jquery-plugin/</link>
		<comments>http://blog.blackbing.net/2009/05/29/jquery-plugin/#comments</comments>
		<pubDate>Fri, 29 May 2009 05:09:30 +0000</pubDate>
		<dc:creator>BLACKBING</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://blog.blackbing.net/?p=348</guid>
		<description><![CDATA[media(多媒體播放)：http://www.malsup.com/jquery/media/ GalleryView(擴充性極強的圖片瀏覽插件)：http://spaceforaname.com/galleryview 取得youtube的影片縮圖：http://jquery-howto.blogspot.com/2009/05/jyoutube-jquery-youtube-thumbnail.html 讓AJAX動作能夠有歷始紀錄(history)：http://www.asual.com/jquery/address/ jstore可以用各種方式儲存client端資料：http://code.google.com/p/jquery-jstore/]]></description>
			<content:encoded><![CDATA[<ol>
	<li>media(多媒體播放)：<a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5tYWxzdXAuY29tL2pxdWVyeS9tZWRpYS8=" target=\"_blank\">http://www.malsup.com/jquery/media/</a></li>
	<li><a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3NwYWNlZm9yYW5hbWUuY29tL2dhbGxlcnl2aWV3">GalleryView</a>(擴充性極強的圖片瀏覽插件)：<a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3NwYWNlZm9yYW5hbWUuY29tL2dhbGxlcnl2aWV3" target=\"_blank\">http://spaceforaname.com/galleryview</a></li>
	<li>取得youtube的影片縮圖：<a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2pxdWVyeS1ob3d0by5ibG9nc3BvdC5jb20vMjAwOS8wNS9qeW91dHViZS1qcXVlcnkteW91dHViZS10aHVtYm5haWwuaHRtbA==" target=\"_blank\">http://jquery-howto.blogspot.com/2009/05/jyoutube-jquery-youtube-thumbnail.html</a></li>
	<li>讓AJAX動作能夠有歷始紀錄(history)：<a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hc3VhbC5jb20vanF1ZXJ5L2FkZHJlc3Mv" target=\"_blank\"><span style="font-family: monospace;">http://www.asual.com/jquery/address/</span></a></li>
	<li><span style="font-family: monospace;">jstore可以用各種方式儲存client端資料：</span><a href="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2pxdWVyeS1qc3RvcmU=">http://code.google.com/p/jquery-jstore/</a></li>
</ol> <img src="http://blog.blackbing.net/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=348" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.blackbing.net/2009/05/29/jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
