正整数:οnkeyup="this.value=this.value.replace(/[^0-9]+/,'');"
可负数:οnkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"
正整数:οnkeyup="this.value=this.value.replace(/[^0-9]+/,'');"
可负数:οnkeyup="this.value=this.value.replace(/[^0-9-]+/,'');"
转载于:https://www.cnblogs.com/1659666966/p/10839721.html