document.onselectstart = new Function("event.returnValue=false");
// 禁用f12及复制
document.onselectstart = function() {
return false;
};
window.oncontextmenu = function() {
return false;
}
window.onkeydown = window.onkeyup = window.onkeypress = function(event) {
if (event.code == 'F12') {
window.event.returnValue = false;
return false;
}
}
0条评论