【问题标题】:I used Bootstrap tour on my site. The tour works for the first time and then, it stops working. How do i resolve this error?我在我的网站上使用了 Bootstrap 导览。巡回演出第一次工作,然后停止工作。我该如何解决这个错误?
【发布时间】:2016-06-06 17:45:43
【问题描述】:

这是第一次工作。所以,我必须让我的所有依赖项都正确。 这是我的旅游代码。

var tour = new Tour({
    name: 'First Tour.'
    steps: [
    {
        element: "#no1",
        title: "NUMBER",
        content: "Enter the no. of codes needed."
    },
    {
        element: "#no2",
        title: "TYPE",
        content: "Enter the type needed."
    }
    ]
});

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

【问题讨论】:

  • 尝试使用tour.start(true);,这将强制开始游览。参考documentation

标签: javascript jquery twitter-bootstrap bootstrap-tour


【解决方案1】:

删除本地存储中的数据以强制重启。在 Chrome -> 控制台 -> 资源 -> 本地存储 -> YOUR_URL -> 删除与游览相关的所有键: * tour_current_step * tour_end

【讨论】:

    猜你喜欢
    • 2019-10-31
    • 2023-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-18
    • 2022-12-10
    • 2022-10-17
    相关资源
    最近更新 更多