组合键监控

版权声明:多总结,帮助自己的同时也在帮助别人!留下意见和看法,让技术动起来! https://blog.csdn.net/qiphon3650/article/details/84143682

没什么多说的

document.onkeydown = function () {
        var oEvent = window.event;
        if (oEvent.keyCode == 13 && oEvent.ctrlKey) {
            console.log("你按下了ctrl+enter");
        }else if(oEvent.keyCode == 13){
            console.log(2222222222)
        }
    }

jQuery的实现方法还没找到

猜你喜欢

转载自blog.csdn.net/qiphon3650/article/details/84143682