摘要:
当使用mousedown的时候,区分是鼠标的哪个键被按下了。jQuery 提供了e.button 属性来查看到底是那个键被按下了返回值有 0 1 2 三个分别对应 左键 中键 右键。示例代码:$(document).on({ mousedonw:function(e){ alert(e.button); } }); 阅读全文
posted @ 2012-06-21 14:24
trance
阅读(573)
评论(0)
推荐(0)

浙公网安备 33010602011771号