document.οnkeydοwn=function(even){ alert(even.keyCode) } 转载于:https://www.cnblogs.com/EvenXiao/p/8075358.html