document.addEventListener("keydown",function (event) {// 如果不知道按键对应的数字(keyCode)是多少可以弹出查看一下// alert(event.keyCode)if (event.ctrlKey && event.altKey && event.view["0"] == null){if(event.keyCode == 89){alert("Ctrl+Alt+y")}}else if (event.ctrlKey && event.shiftKey && event.view["0"] == null){if (event.keyCode == 83){alert("Ctrl+Shift+s保存")}}else if (event.ctrlKey && event.view["0"] == null){if (event.keyCode == 83){// 取消浏览器默认的保存事件window.event.preventDefault();alert("Ctrl+s保存")}}})