link 像 `<script src="/rmarkdown-libs/jquery/jquery.min.js">` 是如何正确和隐藏的?

How is the link like `<script src="/rmarkdown-libs/jquery/jquery.min.js">` correct and hidden?

在 blogdown 的文档中,Appendix D.5 的第四段说,

The links on the published website will be correct and typically hidden from the readers of the pages.

以为有脚注

For example, a reader will not see the <script> tag on a page, so it does not really matter what its src attribute looks like as long as it is a path that actually exists.↩

我还是不明白 link 是如何正确和隐藏的。

您无法在 HTML 页面上看到 <script> 标签的内容。通常他们在幕后发挥作用。例如,就在这个 Whosebug 页面上,使用了 jQuery (<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>),但你无法在页面上 看到 它,除非你看一下此页面的 HTML 来源。有时 JavaScript 确实会在页面上创建视觉元素,但同样,<script> 标签本身并不直接可见。 <p><ul><blockquote>等其他标签的内容在页面上经常可见,例如您正在阅读的段落(<p>).

所以我不明白为什么你觉得可见性和正确性之间存在矛盾。 <script> 标签可以是正确的,并且在 HTML 页面上不可见。