摘要:
document.onkeypress = function (e) { var code; if (!e) { var e = window.event; } if (e.keyCode) { code = e.keyCode; } else if (e.which) { code = e.which; } if (code == 13) { document.getElementById("searchButton").click(); return false; } } 阅读全文