<script>
    //禁止右键
    $(document).bind("contextmenu",function(){return false;});
    //禁止选择
    $(document).bind("selectstart",function(){return false;});
    //禁止F12
    document.onkeydown = function(){
        if(window.event && window.event.keyCode == 123) {
            event.keyCode = 0;
            event.returnValue = false;
        }
       }
</script>

原文https://cloud.tencent.com/developer/article/1560959

 

相关文章:

  • 2021-10-06
  • 2021-12-25
  • 2021-10-19
  • 2021-05-10
  • 2021-12-06
  • 2018-07-23
  • 2021-11-03
猜你喜欢
  • 2021-12-20
  • 2021-11-03
  • 2021-11-03
  • 2021-10-16
  • 2021-10-19
  • 2021-12-31
  • 2021-11-03
  • 2021-12-31
相关资源
相似解决方案