Js realize Enter login Enter event monitor

demand

Enter the project has a login function, in this record

achieve

We should monitor all operations Enter the current login page.

    $("body").keydown(function () {
        var yzmStatus = $("#yzmLoginDiv").css("display");
            if(event.keyCode == '13'){
                if(yzmStatus == "block"){
                    yzmLogin();
                }else{
                    mmLogin();
        }
            }
        });

Guess you like

Origin www.cnblogs.com/jichi/p/11929560.html