本文介绍了我该如何做像GitHub这样的非常棒的无刷页面更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitHub 似乎正在做一件令人难以置信的事情:动画页面的变化没有中断状态。地址栏变化,但页面不刷新,我得到动画到下一个视图。



例如,点击这个URL:然后点击这个URL:



他们是如何在魔鬼身上做的!这太酷了!他们是否使用某种框架或某些服务器端?

API):


GitHub seems to be doing something incredible: animated page changes without breaking state. The address bar changes, but the page doesn't refresh and I get animated to the next view.

For example, hit this URL: as3logback/ then hit this URL: as3logback/lib

How in the devil are they doing it!?! It's so cool! Are they using some sort of frame or something serverside?

解决方案

They have a detailed blog entry up on how it works (HTML5 History API) here: https://github.com/blog/760-the-tree-slider

这篇关于我该如何做像GitHub这样的非常棒的无刷页面更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 18:03
查看更多