javascript - HTML 追加 HREF

标签 javascript jquery html disqus

在 HTML 中附加到底是什么意思?

我的 disqus code 有问题我在教程中注意到它告诉我这样做:

将#disqus_thread 附加到链接中的 href 属性。这将告诉 Disqus 要查找哪些链接并返回评论数。例如:<a href="http://foo.com/bar.html#disqus_thread">Link</a> .

我不确定这到底是什么意思。我是否将其添加到主页按钮链接?

最佳答案

来自 jQuery 附加说明:

Description: Insert content, specified by the parameter, to the end of each element in the set of matched elements.

所以我认为你做得对。顺便说一句,你这样做有什么问题吗?

关于javascript - HTML 追加 HREF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38595285/

相关文章:

javascript - 名称为 div 数据值的函数

html - 手机版CSS

javascript - 我需要将页面滚动到底部,直到用户向上滚动

jQuery点击关闭div(显示)

javascript - 在 IE 中旋转文本,不会变得丑陋

javascript - 使用 jquery 获取 ul 中每个 li 的 Id 或 Name

javascript - iOS Safari 忽略 javascript 中的溢出隐藏代码

javascript - 如何按 ID 减去特定列值并在所有行的另一列中显示结果?

Javascript : How do I map gps coordinates to an image

javascript - Bootstrap 导航栏 #links 正在被 angularjs 更改(或不工作)