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

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

原文地址:https://www.cnblogs.com/deng-jie/p/9104231.html