引导游与引导4阿尔法6 n.popover不是一个函数

问题描述:

尝试使用bootstrap-tour自举4和我得到followng错误:引导游与引导4阿尔法6 n.popover不是一个函数

TypeError: n.popover is not a function

我初始化这样的代码:

var tour = new Tour({ 
      steps: [ 
       { 
        element: "#nextLesson", 
        title: "Title of my step", 
        content: "Content of my step" 
       } 
      ] 
     }); 
     tour.init(); 
     tour.start(); 
+0

确保您使用的是引导4个JavaScript文件。 – Jer

+0

我在哪里可以找到bootstrap 4 js文件? –

你必须initialize popover plugin巡演取决于:

$(function() { 
    $('[data-toggle="popover"]').popover() 
}); 
+0

正确,我还必须包括系绳......谢谢! –

+0

不幸的是它看起来像bootstrap-tour还不能与bootstrap 4兼容。 –