Orkut 的 URL 书写方法

发布于 2024-07-12 06:19:06 字数 395 浏览 10 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

要走就滚别墨迹 2024-07-19 06:19:06

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.

放血 2024-07-19 06:19:06

他们可能在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文