document.onkeydown = function (event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if (e && e.keyCode == 13 && document.activeElement.id == "seachWord") { // enter 键
search();
}
};
时间: 2024-10-20 14:06:34