1,限制输入正整数
onkeyup="value=value.replace(/[^d]/g,'')"
2,限制输入为数字,包括小数(有瑕疵)
onkeyup="value=value.replace(/[^d.]/g,'')"