我应该使用 hashbang/shebang 吗?
我在这里阅读 shebang (#!) 的想法太谷歌了
知道另一种传统的 存在提供相同页面的 URL “状态”
那么,如果我没有与这些哈希状态对应的传统 URL,我是否可以说我应该只使用哈希而不是 shebang
背景:哈希值是基于搜索表单创建的,搜索结果加载在同一页面上。哈希值在那里,以便人们可以返回带有哈希值的 URL 并重复相同的搜索。
更广泛地说,我是否应该拥有与我的哈希值相对应的真实 URL?
I read here that the idea of the shebang (#!) was so Google
knows that an alternative conventional
URL exists providing the same page
"state"
So, if I don't have conventional URLs corresponding to these hash-states, am I right to say that I should be using just a hash and not a shebang?
Background: The hashes are created based on a search form, and the search results are loaded on the same page. The hashes are there so that people can go back to the URL with the hashes and repeat the same search.
More broadly, is there a reason I should have real URLs corresponding to my hashes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要明确的是,这是一个 javascript 驱动的网站吗?就我而言,这将是人们可能需要使用 #! 的唯一原因。话虽如此,即使是#!可能充满了问题,正如今年早些时候的 gawker 切换期间所看到的那样。
To be clear, is this a javascript powered site? As far as I'm concerned that would be the only reason that one might need to use a #!. With that said, even the #! can be full of issues, as could be seen for a while during the gawker switch earlier this year.