js保存按钮绑定快捷键

document.onkeydown = function () {
    if (event.ctrlKey == true && event.keyCode == 83) {
        var saveBs = document.getElementsByClassName("x-btn-text save");
        if (saveBs.length > 0) {
            event.preventDefault();
            for (var num = 0;num

你可能感兴趣的:(js保存按钮绑定快捷键)