2011-12-28 43 views
1

可能重複:
What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for?
To hashbang or not to hashbang?因爲我無法谷歌這個「#!」它究竟是什麼在URL中使用

Iv'e在其URL中使用該散列看到許多網站和所有我能想出的這是監視用戶在網站中的位置的一種方式。任何人都可以詳細說明或者指出我的解釋方向嗎?

+1

請參閱:http://code.google.com/web/ajaxcrawling/docs/getting-started.html – 2011-12-28 19:05:40

+1

谷歌索引'#!'(hash bang) – Prescott 2011-12-28 19:05:56

回答

0

嘗試使用「hash-bang」代替#!

0

這就是所謂的hashbang網址。這個想法是這樣的,AJAXified網站可以被搜索引擎抓取,但它有兩個缺點。

+0

它有幾個*主要*缺點。 – 2011-12-28 19:12:03

+1

@Madmartigan:真的,或者[正如Mike Davies所說的](http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs):'所以#! URL語法特別適用於那些獲得了基本Web開發最佳實踐的網站,並且爲他們提供了一條生命線,讓他們的內容能夠被Googlebot看到。「# – 2011-12-28 19:24:51

+1

......或者[Ben Ward說的](http:// developer .yahoo.com/blogs/ydn/posts/2010/10/how-many-users-have-javascript-disabled /#comment-17071):「如果網站內容沒有通過curl加載,它就會被破壞」。 – 2011-12-28 19:27:11