<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>智能社——http://www.zhinengshe.com</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> </head> <body> <input type="button" value="按钮" id="test"> <script type="text/javascript" src="js/jquery.min.js"></script> <script> $("#test").mousedown(function(e){ if(e.which==1){ alert("这是 左 键单击事件"); }else if(e.which==2){ alert("这是 中 键单击事件"); }else if(e.which==3){ alert("这是 右 键单击事件"); } }) </script> </body> </html>