1.$('.next')bind("click",function(){ });只绑定当前的
2.$(".next").live("click",function(){});后来添加也会绑定
3.为了避免重复绑定按钮一般如下写法:
$('.next').unbind().bind("click",function(){
});//先取消绑定事件,再添加
$(".next").die().live("click",function(){
});//先取消绑定事件,再添加
1.$('.next')bind("click",function(){ });只绑定当前的
2.$(".next").live("click",function(){});后来添加也会绑定
3.为了避免重复绑定按钮一般如下写法:
$('.next').unbind().bind("click",function(){
});//先取消绑定事件,再添加
$(".next").die().live("click",function(){
});//先取消绑定事件,再添加