摘要: jquery:$(function(){ document.onkeydown = function (e) { var ev = document.all ? window.event : e; if (ev.keyCode == 13) { dologin(); } }})js:document.onkeydown=function(){ if (event.keyCode == 13){ alert('回车键.'); } else{ alert('你按错了键.'); }} 阅读全文
posted @ 2012-07-12 15:54 connlyn 阅读(151) 评论(0) 推荐(0) 编辑