jQuery回车键盘按键响应事件(兼容各浏览器)

jQuery回车键盘按键响应事件(兼容各浏览器)

$(document).on("keydown",function (event) {
            var e = event || window.event ||arguments.callee.caller.arguments[0];
            if(e && e.keyCode==13){
                if(loginFlag){**登录处理**
                    $("#loginIn").attr('disabled', 'disabled');
                    loginFlag = false;
                    $("#process_view").show();
                    loginValid();
                }
            }
        });

猜你喜欢

转载自blog.csdn.net/cyadyx/article/details/79106370