Facebook和Ajax [英] Facebook and Ajax

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

问题描述

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

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

推荐答案

使用的第一种方法称为 Ajax Crawling (另请参阅这个回答)。

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

但我认为你所说的新方法只是 HTML5历史记录API 。 Github正在使用这种方式进行树状浏览,您可以了解更多信息。 here 。 (我建议所有读者阅读并观看视频,因为它非常翔实)

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(
直接链接从前一个github文章)。


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

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

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