问问题
1451 次
3 回答
1
<a href="#" onclick="return false;">Some text</a>
您的 jQuery 绑定点击功能应该继续工作。
例子:
于 2010-08-20T09:34:47.200 回答
1
为了阻止某些东西冒泡,我总是遵循这个:
$('myAnchor').live("click", function(e) {
e.preventDefault();
e.stopPropagation();
//or if you want to stop all handlers
e.stopImmediatePropagation();
//code here
//for IE etc.
return false;
});
于 2010-08-20T09:46:05.340 回答