微信二维码
document.addEventListener('keydown', function(event){
return !(
112 == event.keyCode || //禁止F1
123 == event.keyCode || //禁止F12
event.ctrlKey && 82 == event.keyCode || //禁止ctrl + R
event.ctrlKey && 78 == event.keyCode || //禁止ctrl + N
event.shiftKey && 121 == event.keyCode || //禁止shift + F10
event.altKey && 115 == event.keyCode || //禁止alt + F4
"A" == event.srcElement.tagName && event.shiftKey //禁止shift + 点击a标签
) || (event.returnValue = false)
});