jQuery中事件绑定到bind、live、delegate、on方法的探究

转自http://www.javashuo.com/article/p-xavidmim-cm.htmlhtml 1. 给页面上的某个元素绑定事件,最初采用下面的方式实现:浏览器     $(‘selector’).click(function(){dom         //code函数 });性能 缺点:代理 不能同时绑定多个事件,不能绑定动态的元素。code 后来接触到了on、bind、li
相关文章
相关标签/搜索