FWQ
如何找到网页链接中的最终URL?
如何在 href 路径中找到最终 url 问题: 有一个网页 https://www.dataroma.com/m/holdings.php?m=BRK,其中有此链接: <a href="/m/hist/hist.php?f=BRK&s=AAPL" title="Holding/activity history">≡</a> 登录后复制 请确定此链接的最终指向 URL 是什么。 回答: 根据 MDN Web 文档,此 URL 类型称为 “相对于源的 URL”。此 URL 的源是 location.origin,在该示例中为 https://www.dataroma.com。…