以下是我尝试过的一些合适的方法:
<a href="#" data-content="<div id='my_popover'></div>"> Click here </a>
$(".button").popover({html: true})
$(".button").click(function(){
$(this).popover('show');
$("#my_popover").load('my_stuff')
})
当我单击时,我看到请求生成,但是没有填充弹出窗口。我甚至没有看到弹出窗口的 HTML 被添加到 DOM 中,但那可能是纵火。
有人试过吗?