Twitter离线网站概念 [英] Twitter offline site Concept

查看:144
本文介绍了Twitter离线网站概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像twitter一样实现标题.我观察到一些类似的事情,例如当我单击主页链接时,URL发生了变化,但页面标题仍然没有加载,页面的内容也发生了变化.有人可以给我一些建议,以便我将该设计放在我的网站上吗?

I want to implement the header as like twitter has. I have observed couple of things like when i click on home link, the url has changed but still page header is not loaded and the content of the page is changed. Can anybody give me some suggestion so that i can put that design on my site?

更新

我看过这个网站: 1 2

我想知道Twitter如何管理离线站点.因为我尝试了几个 example 用于应用程序缓存,并且我在Firefox浏览器中收到有关页面存储的警告.当我在Firefox上打开Twitter网站时,此警告没有出现.可能是什么原因.我还观察到Twitter第一次使用locaStorage. Twitter离线站点缓存背后的概念是什么?

I am wondering that how twitter manages offline site. Because I have tried couple of example for application caching, and i have got warning on my firefox browser about page storing. While I am opening twitter site on firefox this warning dosen't appear. What could be the reason. I have also observe that twitter is using locaStorage first time. What is the concept behind twitter offline site caching?

推荐答案

正如Cyber​​fox所述,它被称为浏览器状态. JS框架BackboneJS为您实现了此方法: http://documentcloud.github.com/backbone/.

As Cyberfox already mentioned - it's called browser state. The JS-framework BackboneJS implements this method for you: http://documentcloud.github.com/backbone/.

更具体的内容: http://documentcloud.github.com/backbone/#History-start

这篇关于Twitter离线网站概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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