«

input输入框防止非数字字符输入

杰 发布于 阅读:1725 HTML


防止非数字字符输入 onkeyup="this.value=this.value.replace(/[^\d]/g,'')"

HTML JS