摘要: <html> <head> <title>js键盘事件监听</title> </head> <Script language=javascript> <!-- var ie; var firefox; if (document.all) { ie = true; } else { ie = false; //判断是否IE } document.onkeydown = KeyPress; //设置键盘事件函数 function KeyPress(){ var key; if (ie) { //Ie使用event.key 阅读全文
posted @ 2012-08-21 18:14 优秀程序缘 阅读(197) 评论(0) 推荐(0) 编辑