时间:2021-07-01 10:21:17 帮助过:6人阅读
document.onkeypress = function( e ){ alert( getCharCode( e ) ); }; function getCharCode( e ){ var e = e || window.event; if( typeof e.charCode == "number" ){ return e.charCode; }else{ return e.keyCode; }; };
< 上一篇
网页中返回顶部代码(多种方法)另附注释说明
下一篇 >
基于JavaScript 数据类型之Boolean类型分析介绍
记住我的登录 忘记密码?
登录
我已阅读用户协议及版权声明
注册