Mar 13, 2020 + 279 字 前端JavaScript各类屏蔽代码 一、屏蔽F12 审查元素<script> document.onkeydown = function () { if (window.event &&...
Mar 13, 2020 + 103 字 JavaScript实现禁止右键和F12查看源代码 直接放代码了,添加到JS文件里面就行了function click(e) { if (document.all) { if...