input限制整数

<input onkeyup="value=value.replace(/[^d]/g,'')">
原文地址:https://www.cnblogs.com/zhangxiangdong/p/9372098.html