lljun
const flagR=true;
$(\'.AdministrationT\').mousedown(function (e) {
  alert(e.which) //判断鼠标点击的是什么键 1:左键 2:滚轮 3:右键
  if (e.which == 3) {
    if (flagR) {
      flagR = false;
      $(\'.forbiddenJs\').css({
        display: \'block\'
      })
    } else {
      flagR = true;
      $(\'.forbiddenJs\').css({
        display: \'none\'
      })
    }
  }
})
// 阻止浏览器右键默然弹出框
// document.oncontextmenu = function () {
//   return false
// };

  

分类:

技术点:

相关文章:

  • 2021-08-09
  • 2021-08-05
  • 2021-10-06
  • 2021-09-10
  • 2021-10-01
  • 2021-10-16
  • 2021-09-10
  • 2021-09-07
猜你喜欢
  • 2021-11-15
  • 2021-09-10
  • 2021-09-10
  • 2021-10-05
  • 2021-09-10
  • 2021-09-10
  • 2021-04-29
相关资源
相似解决方案