onKeyPress="if ((event.keyCode < 48 || event.keyCode > 57)) event.returnValue = false;" 转载于:https://www.cnblogs.com/hwaggLee/p/4544998.html