$('body').live("mousedown",function(e){

     $('body').bind("contextmenu",function(e){

         return false;

    });

     if(e.which==3){

       alert("鼠标右键触发事件");

     }

  });

1为左键。2为中间滑轮。3为右键

相关文章:

  • 2021-12-12
  • 2021-12-09
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
相关资源
相似解决方案