/** * 操作说明 * 1.在当前页面按f12,在cosnole控制台下直接运行以下代码,按回车建直接生效 */ window.onblur=function () { }; document.onkeydown=function () { return true }; document.body.oncopy =function () { return true }; document.body.oncopy=function () { return true }; document.body.onselect=function () { return true }; document.body.oncontextmenu =function () { return true }; //解除切屏限制 window.onblur=null window.onblur=function () { console.debug(1); }; //解除快捷键切屏操作 window.onkeyup=window.onkeydown=window.onkeypress=document.onkeyup=document.onkeydown=document.onkeypress document.body.onkeyup=document.body.onkeydown=document.body.onkeypress=onkeyup=null; //解除复制粘贴限制 window.oncopy=window.onpaste=document.oncopy=document.onpaste=document.body.oncopy=document.body.onpaste= oncopy=onpaste=null;