Facebook和阿贾克斯 [英] Facebook and Ajax

查看:117
本文介绍了Facebook和阿贾克斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何Facebook的Ajax的工作? 2-3个月前,他们正在使用#,但现在整个地址栏正在发生变化。

How does Facebook Ajax work? 2-3 months ago they were using # but now the whole addressbar is changing.

推荐答案

中使用的第一种方法被称为 AJAX检索(请参见该<一href="http://stackoverflow.com/questions/3009380/whats-the-shebang-hashbang-in-facebook-and-new-twitter-urls-for">answer).

The first approach used is called "Ajax Crawling" (also refer to this answer).

但我认为你是在谈论新的方法仅仅是 HTML5历史API ​​。 Github上使用这种方法为自己的树浏览,你可以了解更多关于它这里。 (我建议所有的读者阅读和观看视频,因为它是非常丰富)

But I think the new approach you are talking about is just the HTML5 History API. Github is using this approach for their tree browsing, and you can learn more about it here. (I recommend ALL readers to read and watch the video as it's very informative)

编辑:
只是要指出的是,Facebook的肯定是使用HTML5历史API(直接链接从previous GitHub上的文章)。


Just to point out that Facebook is definitely using the HTML5 History API (direct link from the previous github article).

这篇关于Facebook和阿贾克斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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