开发者

What is #! seen in Facebook and Twitter URL? [duplicate]

This question already has answers here: 开发者_开发问答 Closed 12 years ago.

Possible Duplicate:

What's the shebang (#!) in Facebook and new Twitter URLs for?

I recently saw Facebook and Twitter's URL:

http://www.facebook.com/#!

http://twitter.com/#!/username

What is #! ? Anyone?


It has to do with Google's method of making AJAX applications "crawlable." See here.


The # is the hash sign, used for referencing an anchor in HTML. Javascript can read the text after a hash in a URL, making it usable for AJAX solutions. Changing the anchor will not navigate away from the page, but it will update the browser history, allowing you to navigate back and forth. As for the !, it likely is just used internally, it doesn't mean anything in a URL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜