摘要: 1、JavaScript 方法:[javascript] <script> document.onkeydown=function(event){ e = event ? event :(window.event ? window.event : null); if(e.keyCode==13){ //执行的方法 alert('回车检测到了'); } }</script><script>document.onkeydown=function(event){e = event ? event :(window.event ? window.ev 阅读全文
posted @ 2012-06-13 16:03 tangself 阅读(279) 评论(0) 推荐(0) 编辑