摘要:当使用mousedown的时候,区分是鼠标的哪个键被按下了。jQuery 提供了e.button 属性来查看到底是那个键被按下了返回值有 0 1 2 三个分别对应 左键 中键 右键。示例代码:$(document).on({ mousedonw:function(e){ alert(e.button); } });
阅读全文
posted @ 2012-06-21 14:24
纸上得来终觉浅,绝知此事要躬行.
posted @ 2012-06-21 14:24
posted @ 2012-06-20 14:48
posted @ 2012-06-19 20:49