网页源代码中 href 的哈希值

发布于 2024-12-13 17:00:56 字数 350 浏览 3 评论 0原文

我有一个简单的问题。 此网站显示了我的问题。查找 Web 源代码并找到类似于以下内容的行:

<a href="#">Next</a>

如果我单击此站点上的“下一步”,# 将重定向到哪里?


基本上我喜欢从该网站上显示统计数据的所有页面获取所有数据。我必须使用 C#,但我仍然不知道如何浏览这个 javascript 页面

I have simple question. This website shows my problem. Look for web source and find line similar to:

<a href="#">Next</a>

Where does # redirect if I click Next on this site?


Basicly i like to get all data from all pages on that site which shows statistics. I have to use C# and i still dont know how to navigate through this javascript pages

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

开始看清了 2024-12-20 17:00:56

# 是当前页面顶部的相对 URI。

在这种情况下,它可能被用作“我懒得使用渐进增强”破解一个链接,该链接将附加一个 JavaScript 事件处理程序。

如需进一步阅读,请参阅片段标识符如何创建锚点

# is a relative URI to the top of the current page.

In this case, it is probably being used as a "I can't be bothered to use progressive enhancement" hack for a link that will have a JavaScript event handler attached to it.

For further reading see fragment identifiers and how to create anchors.

池木 2024-12-20 17:00:56

前面带有 # 的链接 href 会指向同一页面上的锚点。
由于href是“#”,它将指向页面的顶部。

这通常用于在同一页面的不同位置之间跳转。

对于您提供的链接,“#”用于将 A 标记绑定到 javascript 点击事件,而无需访问 href 中的链接。

A link href preceaded with # leads to an Anchor on the same page.
Since the href is "#" it will lead to the top of the page..

This is usually used to jump between places in the same page.

In the case of the link you provided, the "#" is used to have an A tag bound to a javascript click event without visiting the link in the href .

念﹏祤嫣 2024-12-20 17:00:56

当您单击它时,它将引导您到页面顶部(在本例中)。

When you click on it, it will lead you to the top of the page (in this case).

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