$(function(){ 

$('a').mousedown(function(e){ 
alert(e.which) // 1 = 鼠标左键 left; 2 = 鼠标中键; 3 = 鼠标右键 
return false;//阻止链接跳转 
}) 
}) 

如 :

$('#as121').mousedown(function(e){ 
          if(3 == e.which){ 
               alert('这 是右键单击事件'); 
           
          }else if(1 == e.which){ 
                   alert('这 是左键单击事件'); 
        
              } 
        })

相关文章:

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