【问题标题】:AJAX navigation that changes the location of the browser改变浏览器位置的 AJAX 导航
【发布时间】:2011-03-23 14:57:04
【问题描述】:

我一直想知道 github.com 是如何进行导航的。如果你在FF4(不知道它是否在FF3.6中工作)或Chrome(只有两个我已经确认工作,没有测试更多,但它在IE9中不起作用)他们有ajax-navigation(新页面在ajax-request中加载,在客户端只交换新内容),仍然是url改变。它不仅仅是 url 的哈希部分,实际的 url 会发生变化。这是怎么做到的?

【问题讨论】:

    标签: javascript ajax navigation location


    【解决方案1】:

    来自 GitHub 团队的完整解释:

    https://github.com/blog/760-the-tree-slider

    【讨论】:

      【解决方案2】:

      如果你想轻松实现这样的导航,

      你可以使用https://github.com/binarymind/jquery-navigate

      要测试它,只需在 jquery 脚本之后添加您的头脑:

      <script type="text/javascript" src="https://raw.github.com/binarymind/jquery-navigate/master/navigate.js" ></script>
      

      刚刚阅读了 github 中的文档,如有任何问题,请随时问我,很乐意提供帮助

      【讨论】:

        【解决方案3】:

        他们可能会使用这样的东西:

        jQuery, ASP.NET, and Browser History

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-03-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多