AJAX导航改变所述浏览器的位置 [英] AJAX navigation that changes the location of the browser

查看:106
本文介绍了AJAX导航改变所述浏览器的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想了一会儿如何github.com做它的导航。如果输入的FF4项目或浏览器(如果它在FF3.6工作不知道)(只有两个我们已经确认的工作,还没有测试过得多了,但它不能在IE9工作)他们有AJAX导航(新页面加载一个Ajax请求,只有新的内容交换在客户端),仍是URL的变化。而且这不是URL,实际的URL变化的只是哈希的一部分。这是怎么做的?

I've been wondering for a while how github.com does it's navigation. If you enter a project in the FF4 (don't know if it works in FF3.6) or Chrome (only two I've confirmed working, haven't tested much more, but it doesn't work in IE9) they have ajax-navigation (the new page is loaded in an ajax-request, and only the new content is exchanged on the client side), still the url changes. And it's not just the hash-part of the url, the actual url changes. How is this done?

推荐答案

完全从GitHub的团队在这里的解释:

Full explanation from the GitHub team here:

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

这篇关于AJAX导航改变所述浏览器的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆