小编cey*_*yer的帖子

Bootstrap Tour不记得我离开的地方

一旦到达第二页,我就无法在多页巡视中启动Bootstrap Tour.

我有一个点击事件的旅游开始,并localStorage设置为false.通过点击活动,游览开始很好,但是当我进入游览的第二步并加载新页面时,游览不会从它停止的地方开始.

如何在这个新页面上继续从第二步开始巡演?我知道我需要重新初始化巡视,但我显然没有正确地做到这一点.

$(document).ready(function () {
    // Instance the tour
    var tour = new Tour({
        name: "CiteTour",
        steps: [{
            element: "",
            title: "#1",
            content: "You can find help with formatting citations on the Guide page. Click 'Next' to go there now.",
            placement: ""
        }, {
            element: "#CiteTour2",
            title: "#2 - Citation Resources",
            content: "There are several options for getting help with formatting citations. Once on the Guide page, look for the box labeled 'Citation Help.'", …
Run Code Online (Sandbox Code Playgroud)

javascript twitter-bootstrap bootstrap-tour

11
推荐指数
1
解决办法
7798
查看次数