可能重复:
What's the shebang (#!) in Facebook and new Twitter URLs for?URL中的/#!/是什么意思?
通常域名后直接来了。
我一直都在看,就像在Twitter和Facebook的网站上一样。
它是一些特殊的路由?
可能重复:
What's the shebang (#!) in Facebook and new Twitter URLs for?URL中的/#!/是什么意思?
通常域名后直接来了。
我一直都在看,就像在Twitter和Facebook的网站上一样。
它是一些特殊的路由?
#
之后是位置的哈希值;搜索引擎使用以下!
来帮助索引ajax内容。之后可以是任何东西,但通常呈现为一条路径(因此/
)。如果您想了解更多信息,请阅读this。
#
是片段分隔符。它之前的所有内容都是由服务器处理的,而它之后的所有内容都是由客户端处理的,通常使用JavaScript(尽管它会将页面前移到与片段名称相同的锚点)。
可能的重复:http://stackoverflow.com/questions/4184666/what-does-the-in-twitter-urls-do和http://stackoverflow.com/questions/3009380/whats-the-shebang-在Facebook的,和新的Twitter的URL换 – 2010-11-21 16:15:50