input只能輸入正整數正則表達式

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