gpt4 book ai didi

url - 附加到维基百科 URL 的新 #_ 是什么?为什么?

转载 作者:行者123 更新时间:2023-12-04 05:47:38 25 4
gpt4 key购买 nike

维基百科的 URL 最近开始添加 #_ (附加或嵌入)到 手机网站的版本。

  • 这是什么意思?
  • 为什么维基百科开始使用这个新约定?

  • 我知道 shebang/hashbang ( #! ) 但我不确定我是否理解维基百科新 #_ 的目的.
  • 这也与AJAX有关吗?
  • 它是如何工作的?

  • 顺便说一句,在没有 #_ 的情况下将 URL 输入到浏览器的地址中, 导致自动重定向到 #_ -appended URL,这会导致我的浏览器的性能受到显着影响。必须有充分的理由使用这个新 #_方案。我只是不知道(还)它是什么。

    最佳答案

    它只是一个用作 kluge 的虚拟值。设置它的代码于 5 月 1 日在名为 "fix jump to top" 的提交中引入。 ,带有以下提交消息:

    "currently clicking on the jump to top link has no effect. This is because opening a section sets the hash to the same as the jump to top link. By resetting it first we can get back the behaviour we want"



    如果它真的在您的浏览器中引起性能问题,您可能应该 report it as a bug in MediaWiki .实际上,您也应该将其报告为浏览器中的错误。

    关于url - 附加到维基百科 URL 的新 #_ 是什么?为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10480827/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com