document.oncontextmenu = function () { return false; };document.onkeydown = function () {if (window.event && window.event.keyCode == 123) {event.keyCode = 0;event.returnValue = false;return false;}};
这段代码是为了禁用鼠标右键以及F12