$("#queryTable").bind("keydown",function(e){
var theEvent = e || window.event;
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
}
事件对象
原文:https://www.cnblogs.com/looklu/p/8729257.html