jQuery中bind,live,delegate,on绑定事件的方式与区别
jQuery中提供了四种事件监听方式,分别是bind、live、delegate、on,对应的解除监听的函数分别是unbind、die、undelegate、off。已知有4个列表元素: 列表元素1 列表元素2 列表元素3 列表元素4 1、bindbind(type,[data],function(eventObject))bind是使用频率较高的一种,作用就是在选择到的元素上绑定特定事件