var limitUnit = $("#limitUnit_0").val();
$("[name='limitAmount']").each(function(){
$(this).val("");
$(this).attr("onkeydown","");
if(limitUnit=="1"){
$(this).unbind("keydown");
$(this).bind("keydown",function(event){return checkNumber(event);});
}else if(limitUnit=="2"){
$(this).unbind("keydown");
$(this).bind("keydown",function(event){return checkMoney(event,2);});
}
});
jquery绑定解绑事件,带event
最新推荐文章于 2025-05-28 19:34:53 发布