【发布时间】:2013-07-01 20:43:17
【问题描述】:
以下代码干扰了我所有的 html href 语句
$(
function(){
// Get a reference to the content div (into which we will load content).
var jContent = $( "#simplecart_items" );
// Hook up link click events to load content.
$( "a" ).click(function( e ){
var jLink = $( this );
// Override the click to load the contents at URL.
jContent.load( jLink.attr( "href" ) );
// Prevent default click.
e.preventDefault();
}
);
}
);
干扰:
<ul class="one-row social">
<li class="updown-container"><a href="http://instagram.com/Blah" target="_blank" class="updown icon-instagram"></a></li>
</ul>
有人可以帮我解释为什么以及可能如何解决这个问题吗?我已经尝试了一个小时..
【问题讨论】:
-
“干扰”是什么意思?你期待什么?
-
你能贴出你想附加监听器的html吗?