不使用主题标签的单页应用程序 [英] single page application without using hashtag

查看:26
本文介绍了不使用主题标签的单页应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以(以及如何)在不使用主题标签的情况下进行单页应用程序?

Is it possible (and how) to do a single page application without using hashtag ?

例如,在 Google+ 上,我们可以点击一些链接,然后网址发生变化(但没有主题标签)但我们看不到新页面加载,只有页面的某些部分正在加载和刷新.

On Google+ for example, we can click on some links, then the URL changes (but without hashtag) BUT we can't see a new page loading, only some part of the page is loading and refreshed.

谢谢.

推荐答案

答案是使用 pushState.谢谢@Len.

The answer is using pushState. Thank you @Len.

http://www.seomoz.org/blog/create-crawlable-link-friendly-ajax-websites-using-pushstatehttp://html5.gingerhost.com/

http://www.seomoz.org/blog/create-crawlable-link-friendly-ajax-websites-using-pushstate http://html5.gingerhost.com/

这篇关于不使用主题标签的单页应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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