解决Input number 框能够能够输入eeeeee 的问题 onKeypress="return (/[d]/.test(String.fromCharCode(event.keyCode)))" 在input type="number" 中添加 上面这段代码