针对jquery?easyui中numberbox,在precision为零时,禁止输入“点”的扩展。(针对1.2.2)
1、在function?_316(_317){}第一行添加var?opts=$.data(_317,"numberbox").options;
2、修改if(e.which==46){}内的语句为:if(opts.precision?==?0){
return?false;
}else{
return?true;
}
1、在function?_316(_317){}第一行添加var?opts=$.data(_317,"numberbox").options;
2、修改if(e.which==46){}内的语句为:if(opts.precision?==?0){
return?false;
}else{
return?true;
}
/*http://www.jeestudio.com 版权所有,转载请说明出处*/