如何阻止鏈接被使用(使用此事件處理程序)?e.preventDefault()如何不停止鏈接被跟蹤?
http://jsfiddle.net/chovy/rsqH7/1/
<table>
<tbody>
<tr class="msg">
<header><a href="http://cnn.com">cnn.com</a></header></tr>
</tbody>
</table>
$('table').on('click', 'tr.msg header', function (e) {
e.preventDefault();
var $el = $(e.currentTarget);
console.log($el);
});
什麼ü意思爲「被跟蹤」? – Chanckjh