$(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
//js方式
function stop(){
return false;
}
document.οncοntextmenu=stop;
zhangxinglong12 博主文章分类:web ©著作权
$(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
//js方式
function stop(){
return false;
}
document.οncοntextmenu=stop;
下一篇:php 加密页面
javascript隐藏/禁用鼠标右键
通过重新定义oncontextmenu和onselectstart事件,禁止鼠标右键和选择
方法一: 方法二:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M