<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

 

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2021-09-15
  • 2022-01-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案