为什么在 URL 中使用感叹号? [英] Why exclamation is used in URLs?
问题描述
可能的重复:
Facebook 和新 Twitter 中的 shebang (#!) 是什么网址?
嗨
我只是想知道!"有什么用?在这样的网址中
I was just wondering what is the use of "!" in urls like this
http://www.facebook.com/profile.php?id=xxxxxxxx&v=wall#!/profile.php?id=yyyyyy&v=wall
我知道 Facebook 使用 #(hash) 来更改 JavaScript 的查询字符串参数,但是感叹号 (!) 的含义是什么,为什么在 # 之后使用它?我们甚至可以使用 # only 来更改查询字符串参数.使用有什么好处吗!?或者还有其他我遗漏的东西吗?
I know Facebook uses #(hash) for changing the query string parameters with JavaScript but what is the meaning of exclamation (!), why it is used after # ? We can even work with # only to change the querystring params. Is there any benefit of using ! ? or any other thing is there which I am missing ?
推荐答案
这是因为它是一个 URLS 的 AJAX 可抓取符号,一项由 Google 推动的 努力定义一个约定,允许搜索引擎为 Web 2.0 网站编制索引.
It's because it is an AJAX crawlable notation for URLS, an effort driven by Google to define a convention allowing Web 2.0 websites to be indexed by search engines.
当然还要检查 的完全有效的答案新的 Facebook 和 Twitter 网址中的 Shebang 是什么?
这篇关于为什么在 URL 中使用感叹号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!