正则表达式判断是否为数字

onkeyup="value=value.replace(/[^0-9_]/g,'')"

原文地址:https://www.cnblogs.com/zyxzhsh/p/1868125.html