input 正则

input 只能输入数字

  <input type="text"  onkeyup='this.value=this.value.replace(/D/gi,"")'/>

喜欢的朋友请帮忙点个赞!!!
原文地址:https://www.cnblogs.com/mchuang/p/5448322.html