0

flowkey:bootstrap-tour在流星 1.4 中使用 BootstrapTour 包。但这个包不适用于我的应用程序。这是我的代码:

   let tour = new Tour({
     name: "tour",
     debug:true,
     container: "body",
     steps: [
     {
     element: "#test",
     title: "Title of my step",
     content: "Content of my step"
     }
     ],
     template:
     "<div class='popover tour'> <div class='arrow'></div> <h3 class='popover-title'></h3> " +
     "<div class='popover-content'></div> " +
     "<div class='popover-navigation'> " +
     "<button class='btn btn-default' data-role='prev'>« Prev</button> " +
     "<span data-role='separator'>|</span> " +
     "<button class='btn btn-default' data-role='next'>Next »</button> " +
     "</div> " +
     "<button class='btn btn-default' data-role='end'>End tour</button> " +
     "</div>"
     });


     // Initialize the tour
     tour.init();

     // Start the tour
     tour.start();

怎么做?感谢您的关注。:-)

4

1 回答 1

0

你可以试试这段代码

tour.start(true);

希望能解决你的问题

于 2019-07-04T09:05:43.537 回答