标签:class ret nts on() else UNC false highlight document
function disableInfo() { document.onkeydown = function() { var e = window.event || arguments[0]; //屏蔽F12 if(e.keyCode == 123) { return false; //屏蔽Ctrl+Shift+I } else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) { return false; //屏蔽Shift+F10 } else if((e.shiftKey) && (e.keyCode == 121)){ return false; } }; //屏蔽右键单击 document.oncontextmenu = function() { return false; } }
标签:class ret nts on() else UNC false highlight document
原文地址:https://www.cnblogs.com/xuan52rock/p/9797687.html