限制输入框只能输入整数

    @*<input type="text" onkeyup="this.value=this.value.replace(/[^d]/g,'') " onafterpaste="this.value=this.value.replace(/[^d]/g,'') " name="f_order" value="1" />*@

原文地址:https://www.cnblogs.com/sunqiang/p/4899831.html