JQuery绑定和注销事件
1 $('#action_list > li').each(function(){ $(this).unbind('click') .bind('click', function(){ 2 /** some code*/ 3 }); 4 });
1 $('#action_list > li').each(function(){ $(this).unbind('click') .bind('click', function(){ 2 /** some code*/ 3 }); 4 });