event.keyCode

在文本框中的onkeypress事件中,event.keyCode表示键盘输入的值,但keyCode要注意大小写,key都是小写,就Code的C要大写。
原文地址:https://www.cnblogs.com/yzx99/p/1258726.html