js验证只能输入正整数

onkeyup="this.value=this.value.replace(/D/g,'')"
原文地址:https://www.cnblogs.com/libo199374/p/10039226.html