github 如何在更改 URL 时保持加载的页面? [英] How does github keep a loaded page while changing URLs?

查看:16
本文介绍了github 如何在更改 URL 时保持加载的页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://github.com/ether/pad/tree/master/etherpad

如果您点击它,然后转到bin",URL 会更改,但页面不会重新加载.. 这怎么可能?这不是#'d!

解决方案

这是一些新的 html5 糖果:历史 API.此外,这里还有一篇文章,其中 github 团队解释了完整的实现.>

https://github.com/ether/pad/tree/master/etherpad

If you click on that, then go to "bin", the URL changes, but the page doesn't reload.. how is this possible? It's not #'d!

解决方案

It is some new html5 candy: history api. Also, here is an article where the github team explains the full implementation.

这篇关于github 如何在更改 URL 时保持加载的页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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