Bootstrap tour - 获取TypeError:无法读取未定义的属性'onNext'

时间:2018-05-03 04:38:51

标签: jquery twitter-bootstrap-3 bootstrap-tour

我正在尝试在我的网站上实施bootstrap-tour。但是,当我点击巡回弹出窗口中的下一个时,我总是得到以下错误,导览不会移动到下一步。

bootstrap-tour.js:469 Uncaught TypeError: Cannot read property 'onNext' of undefined
at Tour._showNextStep (bootstrap-tour.js:469)
at Tour._callOnPromiseDone (bootstrap-tour.js:812)
at Tour.next (bootstrap-tour.js:178)
at HTMLButtonElement.<anonymous> (bootstrap-tour.js:741)
at HTMLDocument.dispatch (jquery-1.9.1.js:3074)
at HTMLDocument.elemData.handle (jquery-1.9.1.js:2750)
Tour._showNextStep @ bootstrap-tour.js:469
Tour._callOnPromiseDone @ bootstrap-tour.js:812
Tour.next @ bootstrap-tour.js:178
(anonymous) @ bootstrap-tour.js:741
dispatch @ jquery-1.9.1.js:3074
elemData.handle @ jquery-1.9.1.js:2750

以下是我作为巡回步骤添加的内容:

$(document).ready(function() {

  var tour = new Tour({

    steps: [
        {
          element: ".stepClass",
          title: "Title1",            
          content: "Message 1.",
          debug:true//Set this option to true to have some useful informations printed in the console.
        },
        {
          element: ".stepClass2",
          title: "Title2",
          content: "Message 2",
         debug:true
        }

      ],
      backdrop: true,
      storage: false

  });
 tour.init();
 tour.start();

});

有人可以帮忙吗?

0 个答案:

没有答案