//回车键
document.onkeydown = function (e) {
if (!e) e = window.event; //火狐中是 window.event
if ((e.keyCode || e.which) == 13) {
var btlogin = document.getElementById("btlogin");
btlogin.focus();
btlogin.click();
}
}
绑定回车键JS
最新推荐文章于 2023-03-22 16:52:25 发布