网站禁止复制

Ezra
2021-03-08 / 0 评论 / 195 阅读 / 正在检测是否收录...
<script>
document.onkeydown = function(e){
var e=e||event;
if (e.ctrlKey==1 && e.keyCode==67){
return false;
}
}//防止ctrl+C
document.body.oncopy = function (){return false;} //阻止复制
</script>
<script> document.body.onselectstart=document.body.oncontextmenu=function(){return false;};</script>
0

评论 (0)

取消