2011-12-28 46 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