我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();
怎么做?感谢您的关注。:-)