禁止右键,禁止选中,禁止网页复制的Js代码

document.oncontextmenu=new Function('event.returnValue=false;');

document.onselectstart=new Function('event.returnValue=false;');

以上两断代码即可搞定!

原文地址:https://www.cnblogs.com/lazb/p/6961637.html