正则表达式 只能输入整数

onkeyup="value=value.replace(/[^d]/g,'')"

原文地址:https://www.cnblogs.com/caozengling/p/5761896.html