正則限制input只能輸入大於0的數字

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