oninput="var v=this.value||'';v=v.replace(/[^\d]/g,'');if(v.length==1 && v==0){v=''};this.value=v.substr(0,2);"
onkeyup="value=value.replace(/[^\d]/g,'')"
oninput="var v=this.value||'';v=v.replace(/[^\d]/g,'');if(v.length==1 && v==0){v=''};this.value=v.substr(0,2);"
onkeyup="value=value.replace(/[^\d]/g,'')"
本文标题:el-input限制数字输入
本文链接:https://www.haomeiwen.com/subject/ixxlortx.html
网友评论