input只能输入正整数正则表达式

<input type="text" oninput="if(this.value=='00'){this.value='0';}else{this.value=this.value.replace(/[^0-9]/g,'')}"/>
相关文章
相关标签/搜索