<?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>《页面加载完成后新建的元素事件绑定问题(上)》的评论</title>
	<atom:link href="http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/feed" rel="self" type="application/rss+xml" />
	<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html</link>
	<description>关注HTML,CSS,JavaScript,jQuery等前端开发</description>
	<lastBuildDate>Mon, 07 May 2012 10:20:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：【ZT】jQuery1.3的改进</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-4484</link>
		<dc:creator>【ZT】jQuery1.3的改进</dc:creator>
		<pubDate>Thu, 17 Feb 2011 08:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-4484</guid>
		<description>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</description>
		<content:encoded><![CDATA[<p>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：EX4FUN &#187; Blog Archive &#187; 【ZT】jQuery1.3的改进</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-384</link>
		<dc:creator>EX4FUN &#187; Blog Archive &#187; 【ZT】jQuery1.3的改进</dc:creator>
		<pubDate>Fri, 16 Jan 2009 05:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-384</guid>
		<description>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</description>
		<content:encoded><![CDATA[<p>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：肥占的博客 &#187; jQuery 1.3 正式版正式发布</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-377</link>
		<dc:creator>肥占的博客 &#187; jQuery 1.3 正式版正式发布</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-377</guid>
		<description>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</description>
		<content:encoded><![CDATA[<p>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jQuery 1.3 正式版发布公告 &#124; 走走停停看看</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-370</link>
		<dc:creator>jQuery 1.3 正式版发布公告 &#124; 走走停停看看</dc:creator>
		<pubDate>Wed, 14 Jan 2009 19:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-370</guid>
		<description>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</description>
		<content:encoded><![CDATA[<p>[...] 这样，我以前写的关于重复绑定的文章就差不多可以抛弃了 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jQuery 1.3更新的内容 &#124; 走走停停看看</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-315</link>
		<dc:creator>jQuery 1.3更新的内容 &#124; 走走停停看看</dc:creator>
		<pubDate>Wed, 24 Dec 2008 17:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-315</guid>
		<description>[...] 前两天jQuery更新出了jQuery 1.3的beta版，今天有空看了看到底更新了点什么 看了下代码，选择器用上了新的引擎Sizzle咯。（Sizzle为何？见下面简介） 增加了一个closest方法，用来找最近的一个匹配选择器的父元素。 LiveQuery似乎也集成了，用$(elem).live(type,fn)就能注册事件了，新添加的元素也同样享受这个服务～无须重新帮定了。不想要的时候让die()就行了。 更多的还没来得及看，不过看到了JavaEye上的文章，把这次的更新都说全了。可以移步去看看。Cloudream在两个月前就对jQuery 1.3的alpha有所阐述了，建议也可以看看。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 前两天jQuery更新出了jQuery 1.3的beta版，今天有空看了看到底更新了点什么 看了下代码，选择器用上了新的引擎Sizzle咯。（Sizzle为何？见下面简介） 增加了一个closest方法，用来找最近的一个匹配选择器的父元素。 LiveQuery似乎也集成了，用$(elem).live(type,fn)就能注册事件了，新添加的元素也同样享受这个服务～无须重新帮定了。不想要的时候让die()就行了。 更多的还没来得及看，不过看到了JavaEye上的文章，把这次的更新都说全了。可以移步去看看。Cloudream在两个月前就对jQuery 1.3的alpha有所阐述了，建议也可以看看。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：页面加载完成后新建的元素事件绑定问题(下) &#124; 走走停停看看</title>
		<link>http://shawphy.com/2008/07/bind-handle-on-the-new-added-elements-part-a.html/comment-page-1#comment-90</link>
		<dc:creator>页面加载完成后新建的元素事件绑定问题(下) &#124; 走走停停看看</dc:creator>
		<pubDate>Thu, 24 Jul 2008 07:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://shawphy.com/?p=82#comment-90</guid>
		<description>[...] 页面加载完成后新建的元素事件绑定问题(上) ============================= 3号解决方案——复制事件法 上面几种方案可以说即便你没有用到jQuery库，你也能相对比较容易的实现。但这种方案相对依赖jQuery的程度更高。而且必须要求jQuery 1.2版以上。低版本jQuery需要插件。 上面两个方案都是对删除函数动了很多脑筋，换了多种触发、绑定的方式。这个方案不同，可以与平时纯静态的元素一样在domready的时候绑定。但在我们添加新行的时候我们改动一下，不再想上面那样拼接字符串来添加新行了。这回我们尝试使用复制DOM元素的方式。并且复制的时候连同绑定的事件一起复制，复制完之后再用find之类的修改内部的元素。 同时，就像这个例子，如果你会把所有元素都删除光，那template这个模板是必须的，如果不会删光，那就未必需要用template了。为了防止被误删，此处我把template设了隐藏。 我使用了jQuery中特有的clone(true) .template{display:none;} [...]</description>
		<content:encoded><![CDATA[<p>[...] 页面加载完成后新建的元素事件绑定问题(上) ============================= 3号解决方案——复制事件法 上面几种方案可以说即便你没有用到jQuery库，你也能相对比较容易的实现。但这种方案相对依赖jQuery的程度更高。而且必须要求jQuery 1.2版以上。低版本jQuery需要插件。 上面两个方案都是对删除函数动了很多脑筋，换了多种触发、绑定的方式。这个方案不同，可以与平时纯静态的元素一样在domready的时候绑定。但在我们添加新行的时候我们改动一下，不再想上面那样拼接字符串来添加新行了。这回我们尝试使用复制DOM元素的方式。并且复制的时候连同绑定的事件一起复制，复制完之后再用find之类的修改内部的元素。 同时，就像这个例子，如果你会把所有元素都删除光，那template这个模板是必须的，如果不会删光，那就未必需要用template了。为了防止被误删，此处我把template设了隐藏。 我使用了jQuery中特有的clone(true) .template{display:none;} [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

