//页面不可以选中
document.body.onselectstart = function(){
return false;
}
//页面图片不允许拖动
document.getElementsByTagName(‘img’)[0].onmousedown = function(e){
e.preventDefault()
};
$(“img”).on(‘mousedown’, function (e) {
e.preventDefault();
})
页面不可以选中 页面图片不允许拖动
最新推荐文章于 2023-11-01 10:47:22 发布