<input type="text" onkeyup="this.value=this.value.replace(/\D/g,'')"/>
onkeyup="this.value=this.value.replace(/\D/g,'')" 是这是输入框只能输入数字
<input type="text" onkeyup="this.value=this.value.replace(/\D/g,'')"/>
onkeyup="this.value=this.value.replace(/\D/g,'')" 是这是输入框只能输入数字