var event = window.event || arguments.callee.caller.arguments[0]; var keycode = event.keyCode || event.which; if (keycode == 13) { alert("检测到回车"); }
var event = window.event || arguments.callee.caller.arguments[0]; var keycode = event.keyCode || event.which; if (keycode == 13) { alert("检测到回车"); }