鼠标按下移动不选中类容

window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();

 

 

document.body.onselectstart = function(){

  return false;

}

document.body.onselectstart = function(){

  return true;

}

posted on 2022-09-23 16:28  马玉豪  阅读(19)  评论(0)    收藏  举报

导航