input 正则 input 只能输入数字 <input type="text" onkeyup='this.value=this.value.replace(/D/gi,"")'/> 喜欢的朋友请帮忙点个赞!!!