更改 URL 并且不重新加载页面(这次没有 url 片段)

发布于 2024-10-04 05:58:45 字数 310 浏览 0 评论 0原文

只是想知道 Google 如何对这个网站进行编码,而不会在页面和网址更改时重新加载网站。

看看并一页一页地浏览。 http://www.20thingsilearned.com/

我已经使用 # 哈希更改操作完成了类似的技术(通过 onhashchange 事件使用)可以达到相同的结果,但是,这种技术更加干净。

这是 chrome 特有的功能吗?或者所有支持 HTML5 的浏览器都支持它吗?或者是否有一些复杂的框架组合在一起使用?

Just wondering as to how did Google code this website without it reloading the website when the page AND url are changed.

Take a look and go from page to page.
http://www.20thingsilearned.com/

I've done a similar technique using a # hash change operation (with use of by the onhashchange event) to achieve the same result, however, this technique is far more cleaner.

Is this a chrome-specific feature? Or do all HTML5-enabled browsers support it? Or is there some complex combination of frames that are used together?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文