1

嘗試使用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文件? –

回答

1

你必須initialize popover plugin巡演取決於:

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

正確,我還必須包括繫繩......謝謝! –

+0

不幸的是它看起來像bootstrap-tour還不能與bootstrap 4兼容。 –