标签:== alert 点击 return on() 跳转 else bsp ret
$(function(){
$(‘a‘).mousedown(function(e){
alert(e.which) // 1 = 鼠标左键 left; 2 = 鼠标中键; 3 = 鼠标右键
return false;//阻止链接跳转
})
})
如
$(‘#downwps2010‘).mousedown(function(e){
if(3 == e.which){
alert(‘这 是右键单击事件‘);
}else if(1 == e.which){
alert(‘这 是左键单击事件‘);
}
})
标签:== alert 点击 return on() 跳转 else bsp ret
原文地址:http://www.cnblogs.com/joesbell/p/6566477.html