回车登录,兼容

//点击回车键//2015/3/11

document.onkeydown = function (event) {

    var e = event ? event : (window.event ? window.event : null);

    if (e && e.keyCode == 13) { // enter 键

        //登录

        wds_logintongji();

    }

};

 

你可能感兴趣的:(兼容)