引导弹出窗口无法正常工作

Bootstrap popover not working properly

本文关键字:常工作 工作 窗口      更新时间:2024-05-06

我在backboneJs项目中使用twitter引导程序-2.3.2 popover。

点击时,我正在调用一个函数,该函数应触发弹出

<li>
 <a class="candidPopover" href="#" id="loginUser" rel="popover"><%= candidateName %></a>
</li>
myFunctionName : function(e){
 var id = e.target;
 $(id).popover('toggle', {
     animation:'true',
     placement:'bottom', 
     title: 'Twitter Bootstrap Popover',
     content: "It's so simple to create a tooltip for my website!"
  });

函数被调用,但popover没有打开。

http://jsbin.com/oyOVireH/2/edit

卸下'toggle',它应该可以正常工作。