六、input框中的数字(金额)只能输入正整数

<input type="text" placeholder="请输入整数" onkeyup="this.value=this.value.replace(/\D/g,'')"/>

posted @ 2018-05-29 11:41  杰_森  阅读(250)  评论(0编辑  收藏  举报