我有从 ajax 添加的链接,带有 target="_top"。
我想取消重定向。
html:
<ul id="controllerNav">
<li>
<a href="https://www.yacht.de/mein_dk/login.html" target="_top" title="Login">Login</a>
</li>
</ul>
查询:
$('#controllerNav a').live('click', function(event){
event.preventDefault();
event.stopPropagation();
return false;
});
现在,函数出现了,但在它完成链接的操作后,也会出现“return false”和其他行。