var event = window.event || arguments.callee.caller.arguments[0]; var keycode = event.keyCode || event.which; if (keycode == 13) { alert("检测到回车"); }
本文共 213 字,大约阅读时间需要 1 分钟。
var event = window.event || arguments.callee.caller.arguments[0]; var keycode = event.keyCode || event.which; if (keycode == 13) { alert("检测到回车"); }
转载于:https://www.cnblogs.com/goding/p/8118542.html