Javascript Bootstrap popover 3.3.6中的怪异行为
我需要在我的子菜单导航引导弹出窗口。当我打开菜单时,它工作正常,还有一个关闭按钮,但当再次打开它时,它不工作。这意味着它在奇数点击下工作,在偶数点击下不工作 但在Bootstrap3.3.2中,所有这些都正常工作Javascript Bootstrap popover 3.3.6中的怪异行为,javascript,jquery,html,css,twitter-bootstrap,Javascript,Jquery,Html,Css,Twitter Bootstrap,我需要在我的子菜单导航引导弹出窗口。当我打开菜单时,它工作正常,还有一个关闭按钮,但当再次打开它时,它不工作。这意味着它在奇数点击下工作,在偶数点击下不工作 但在Bootstrap3.3.2中,所有这些都正常工作 js $(函数(){ var Poporsettings={ 位置:'底部', 容器:'主体', 是的, 选择器:“#更改客户”, 标题:“”, 内容:功能(){ return$('#customer popover').html(); } } $('body').popover(p
js
$(函数(){
var Poporsettings={
位置:'底部',
容器:'主体',
是的,
选择器:“#更改客户”,
标题:“”,
内容:功能(){
return$('#customer popover').html();
}
}
$('body').popover(popOverSettings).on('show.bs.popover',function()){
enableTypeAhead();
});
$(document).on(“click”,“.popover.close”,函数(){
$(this.parents(“.popover”).popover('hide');
});
});代码>
切换导航
-
销毁popover而不是隐藏它:
$(this).parents(".popover").popover('destroy');