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,'')//当前文本表单只能输入数字类型的数据

posted @ 2018-07-13 09:43  隐语者  阅读(124)  评论(0编辑  收藏  举报