mootools_MooTools事件委托

mootools

One feature I heard Moo developers hinting at was the future addition of event delegation to the MooTools JavaScript library. MooTools Core Developer, Aaron Newton, wrote a post today about a plugin he's created that does just that.

我听到Moo开发人员暗示的一项功能是,将来会将事件委托添加到MooTools JavaScript库中。 MooTools核心开发人员Aaron Newton今天写了一篇关于他所创建的插件的帖子。

From the article:

从文章:

Event delegation is a common practice where by you attach an event listener to a parent object to monitor its children rather than attach events to all the children. It's far more efficient when you have numerous items on a page that you want to interact with.
事件委托是一种常见的做法,您可以将事件侦听器附加到父对象以监视其子对象,而不是将事件附加到所有子对象。 当页面上有许多要与之交互的项目时,效率会大大提高。

I don't know of any concrete plans to incorporate this functionality into MooTools 1.3 but I assume they will. I strongly suggest MooTools developers read Aaron's article at Clientcide. I also recommend this article for jQuery users as John Resig recently boasted of this addition to jQuery.

我不知道有任何具体的计划将此功能集成到MooTools 1.3中,但是我想他们会的。 我强烈建议MooTools开发人员在Clientcide上阅读Aaron的文章 。 我也向jQuery用户推荐这篇文章,因为John Resig最近夸耀了jQuery的这一新增功能

Exciting times in the framework world!

框架世界激动人心的时代!

翻译自: https://davidwalsh.name/mootools-event-delegation

mootools

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值