jquery判断点击鼠标左、中、右键事件

注:1为鼠标左键、2为鼠标中键、3为鼠标右键
$('#btn').mousedown(function(e){ 
          if(3 == e.which){ 
               alert('右键单击事件'); 
          }else if(1 == e.which){ 
                   alert('左键单击事件'); 
              } 
        })

原文地址:https://www.cnblogs.com/lilelile/p/7505264.html