Orkut 的 URL 书写方法
我对 orkut 的新 URL 写入方法有疑问。
早些时候,主页就像
http://www.orkut.com/Home.aspx
现在其更改为
http://www.orkut.co.in/Main#Home.aspx
“#”的意义是什么? 为什么它在那里以及他们为什么使用它?
不是使用“#”导航到页面的特定部分 锚标记中的 name="blah" ?
I have a doubt about orkut's new URL Writing method.
Earlier the home page was like
http://www.orkut.com/Home.aspx
Now its changed to
http://www.orkut.co.in/Main#Home.aspx
Whats the significance of "#" ?
Why is it there and why have they used it?
Is not "#" used to navigate to a particular section of Page using
name="blah" in the anchor tag?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
URL 片段 (#name) 历史上用于页内锚点,以便您可以标记一个部分,并在链接到该部分时让页面将正确的内容滚动到视图中。
不过,由于 JavaScript 代码也可以看到 URL 片段,因此许多黑客技术已经变得流行,允许您将同一页面用于多种目的。 对于浏览器历史记录来说,它可能比做出任何类型的表示决策更有用,但这两种技术都很常见。
The URL fragment (#name) was historically used for in-page anchors, so that you could mark a section and have the page scroll just the right content into view when linking to it.
Since the URL fragment can also be seen by JavaScript code, though, many hacks have become popular that allow you to use the same page for multiple purposes. It's probably more useful for browser history than making any sort of presentation decisions, but both techniques are common.
他们可能在 Javascript 中使用它。
通常,ajax 密集型页面使用#,以便书签和浏览器后退按钮仍然有效。
They're probably using it in their Javascript.
Often ajax heavy pages use the # so that bookmarks and browser back buttons still work.