<input class="layui-input" οnkeyup="value=zhzs(this.value)" lay-verify="required|number" id="" name="" value="" maxlength="7">
//转化正整数
function zhzs(value){
value = value.replace(/[^\d]/g,'');
if(''!=value){
value = parseInt(value);
}
return value;
}