JavaScript简易事件触发合集

1、<input id="billing" type="text" placeholder="123" onkeyup="this.value=this.value.replace(/D/g,'')" />

     onkeyup="this.value=this.value.replace(/D/g,'')//当前文本表单只能输入数字类型的数据

原文地址:https://www.cnblogs.com/hzb462606/p/9303258.html