window.onkeydown = function(e){
//獲取當前按鍵的信息 ctrl + c
console.log(e.keyCode); // 67 c
console.log(e);ide
if(e.keyCode == 67 && e.ctrlKey){
// alert('你按下了 ctrl + c')it
e.preventDefault();
}
}io
window.oncontextmenu = function(e){
e.preventDefault();
}console