input 限制輸入大於0的數字

在input 中加入markdown onkeyup="this.value=this.value.replace(/\D|^0/g,'')" onafterpaste="this.value=this.value.replace(/\D|^0/g,'')"
相關文章
相關標籤/搜索