//只可以输入整数 onkeyup="value=value.replace(/[^d]/g,'')" //可以输入数字 包括小数 onkeyup="value=value.replace(/[^d.]/g,'')"