摘要: document.onkeydown=keyDownSearch;functionkeyDownSearch(e){//兼容FF和IE和OperavartheEvent=e||window.event;varcode=theEvent.keyCode||theEvent.which||theEvent.charCode;if(code==13){alert('回车');//具体处理函数returnfalse;}returntrue;}如果只是针对某个DIV层应用回车查询的话,可以将:document.onkeydown=keyDownSearch;改成:document.get 阅读全文
posted @ 2013-12-26 15:04 风中鸣,雨中行 阅读(258) 评论(0) 推荐(0) 编辑