在URL哈希(#)的使用 [英] Usage of Hash(#) in URL
问题描述
我想知道有没有什么比用在URL锚其他散列。我读到这里
<一href=\"http://stackoverflow.com/questions/20280212/getting-the-full-url-including-the-query-string-after-hash\">getting完整的URL包括散列后查询字符串。
什么是客户端的状态信息?请帮助。
I was wondering is there any use of hash other than as an anchor in URL. I read about it here getting the full url including query string after hash . What is state information for the client? Please help.
推荐答案
有关导航,也可用于单页的应用程序,这样,而不是用它来导航到你使用哈希作为一种手段,一个页面一个点的哈希一页一页地。这样做的好处是,它不要求页面刷新。
The hash can be used also for single page applications, so instead of using it to navigate to a point in a page you use the hash as a means for navigated from page to page. The advantage of this is that it does not require a page refresh.
有也被用于单页的应用程序,用于帮助一个方法调用hashbanging Ajax应用程序更可索引的。
There is also a method called hashbanging which is used for single page applications and is used for helping ajax applications more indexible.
有关于这个问题的一些好文章
There are a few good articles on the subject
- https://github.com/browserstate/history.js/wiki/Intelligent-State-Handling
- http://danwebb.net/2011/5/28/it-is-about-the-hashbangs
- https://developers.google.com/webmasters/ajax-crawling/
这篇关于在URL哈希(#)的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!