$('#theLink').click(function(evt) { // do something // stop the event from continuing evt.preventDefault(); evt.stopPropagation(); });//该片段来自于http://www.codesnippet.cn/detail/201120137339.html
来源: http://www.codesnippet.cn/detail/201120137339.html