直接上代码:
[...document.querySelectorAll('*')].forEach(item=>{
item.oncopy = function(e) {
e.stopPropagation();
}
});
用法:复制代码到浏览器控制台,回车。
直接上代码:
[...document.querySelectorAll('*')].forEach(item=>{
item.oncopy = function(e) {
e.stopPropagation();
}
});
用法:复制代码到浏览器控制台,回车。