【文件属性】:
文件名称:JS禁用右键、禁用Ctrl+u、禁用Ctrl+s、禁用F12的实现代码
文件大小:52KB
文件格式:PDF
更新时间:2021-01-18 17:03:59
rl tr
先来两个简单粗暴的
第一种方法:
var arr = [123, 17, 18];
[removed] = new Function(event.returnValue=false;),//禁用右键
[removed] = new Function(event.returnValue=false;),//禁用选中
[removed] = function (e) {
var code = e.keyCode;
if (arr.indexOf(code) > -1) {
console.log(中招了, co