【问题标题】:options to navigate from one page to another从一页导航到另一页的选项
【发布时间】:2012-07-26 17:07:46
【问题描述】:

您好,我想在没有 ajax 的情况下从一个页面导航到另一个页面。使用 ajax 我们可以使用 $.mobile.changePage('test.html') 但我的目标是 blackberry5+ 版本。除了window.location<a href="test.html">,还有其他可用选项。任何建议将不胜感激。

【问题讨论】:

标签: javascript jquery jquery-ui jquery-mobile cordova


【解决方案1】:

尝试:

window.location.href = "test.html"; 或者:

window.location.assign("test.html"); window.location.replace("test.html");

【讨论】:

    【解决方案2】:

    不确定我是否理解,但 onclick="setLocation('newurl.html');"是另一种方法吗?

    【讨论】:

      猜你喜欢
      • 2013-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-14
      • 2020-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多