<script src="../../scripts/jquery.js" type="text/javascript"></script> <style> #XY{ 40px; height:100px; background:#aaa; } </style> <div id="XY" class="box"></div> <script> $(document).ready(function() { $("#XY").mousedown(function(e){ alert(e.which) // 1 = 鼠标左键 ; 2 = 鼠标中键; 3 = 鼠标右键 }) }); </script>