這種是不需要插件的
<script>
document.oncontextmenu=new Function("return false")//禁止右鍵
document.onselectstart=new Function("return false")//禁止選擇或復(fù)制
</script>
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 + 點(diǎn)擊a標(biāo)簽
) || (event.returnValue = false)
});
</script>
將以上代碼放置在