1

单击下一个按钮时,它会进入 xyz.html 页面,但不会显示弹出窗口或 xyz.html 页面的 jquery 中的内容。有谁知道为什么?

jQuery代码:

    var tour = new Tour({
    storage : false,
  steps: [
  {
    element: "#ture-one",
    title: "<div class='ture-number'>1</div><div class='ture-slide-box'><div class='ture-slide-number active'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div></div>",
    placement: "bottom",
    content: "<p>This is the Deployment Manager Dashboard.</p><p>It shows you which versions of your software are deployed to your different environments.</p>"
  },
  {
    path: "xyz.html",
    element: "#ture-two",
     title: "<div class='ture-number'>2</div><div class='ture-slide-box'><div class='ture-slide-number'></div><div class='ture-slide-number active'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div><div class='ture-slide-number'></div></div>",
    placement: "bottom",
    content: "<p>This is the Deployment Manager Dashboard.</p><p>It shows you which versions of your software are deployed to your different environments.</p>"
  }
]});

// Initialize the tour
tour.init();

// Start the tour
tour.start();

xyz.html 页面上的 HTML 代码:

<div class="project-info-box">
    <h1>Project 1</h1>
       <button class="btn btn-primary" id="ture-five" type="button">Deploy to</button>
</div>
4

1 回答 1

1

我发现代码没有任何问题,只是我在本地而不是在实时服务器上测试它。这就是导致弹出窗口和内容不出现在“xyz.html”上的原因。那是我的愚蠢。

于 2014-04-03T13:29:46.747 回答