在我的页面上,我有弹出文字:
<a id="key" href="#" rel="popover"
data-original-title="bla" data-content='foo foo foo '>bar bar </a>
<script>
$('#key').popover( { placement: 'top'});
</script>
在我添加
之前它已经工作了<base href="http://mydomain.ru">
进入头部。
在弹出功能被破坏后,单击它会显示弹出窗口并重定向到base_href。
如何解决这个问题?
答案 0 :(得分:1)
要在单击时停止默认行为,请尝试;
<a id="key" href="#" rel="popover" onclick="javascript: return false;"
data-original-title="bla" data-content='foo foo foo '>bar bar </a>