会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lambert's blog
停杯投箸不能食,拔剑四顾心茫然
首页
联系
管理
2023年12月25日
网页禁止复制
摘要: 一、通过 JavaScript 实现 我们可以通过 JS 代码来禁用网页的复制事件、剪切事件、选择内容事件甚至是右键菜单事件。 // 禁止右键菜单 document.oncontextmenu = function(){ return false; }; // 禁止文字选择 document.ons
阅读全文
posted @ 2023-12-25 16:44 lambertlt
阅读(100)
评论(0)
推荐(0)
编辑
公告