cii*_*cii 4 html javascript disqus
我想我已按照通用代码的指示设置了Disqus.
麻烦的是它总是说帖子有0条评论.
请看这篇文章:http: //tx0rx0.com/retropie-and-the-raspberry-pi/
铁饼说有11条评论,然后与头版进行比较
我认为你所需要的只是一个链接到页面,其中包含带有#disqus_thread的disqus注释.像这样:
<a href="tx0rx0.com/retropie-and-the-raspberry-pi#disqus_thread>Comments</a>
Run Code Online (Sandbox Code Playgroud)
并且具有正确短名称的javascript将完成其余的工作.我哪里做错了?另外,为什么会有一段时间呢?
Rya*_*n V 12
在注释计数查找时,协议和尾随斜杠的存在很重要.试试这个:
<a href="http://tx0rx0.com/retropie-and-the-raspberry-pi/#disqus_thread">Comments</a>
Run Code Online (Sandbox Code Playgroud)
您还可以考虑将'disqus_identifier'和'disqus_url'与注释嵌入一起使用,然后您可以在注释计数链接中使用,如下所示:
<a href="http://tx0rx0.com/retropie-and-the-raspberry-pi/#disqus_thread" data-disqus-identifier="some_identifier_for_thread">Comments</a>
Run Code Online (Sandbox Code Playgroud)
这将规范化传递给我们的内容与您在呈现评论计数链接时所期望的数据之间的数据.