开发者

jQuery 1.7 "unifying bind/live/delegate"

The jQuery 1.7 release will "unify bind开发者_Go百科/live/delegate". What does this mean in term of the jQuery source? What are the consequences for my jQuery code?


  • Corresponding ticket

  • Google Doc explaining the changes

Short summary:

Currently we have three different event API pairs: bind/unbind, live/die, and delegate/undelegate. Since they all use the same event lists and events under the covers, exposing the APIs separately can lead to incorrect expectations. Introduction of jQuery.fn.on. Bind/Delegate/Live will stay as shorthand methods.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜