更新时间:2023-12-02 11:36:04
答案是andufo.它的工作原理:
Here is the answer andufo. It works:
$(document).ready(function() {
window.disqus_no_style = true;
$.getScript('http://sitename.disqus.com/embed.js', function() {
var loader = setInterval(function() {
if($('#disqus_thread').html().length) {
clearInterval(loader);
disqusReady();
}
}, 1000);
});
function disqusReady() {
//whatever you can imagine
}
});
您可以注释掉$ .getscript行并以}结尾;以及window.disqus_no_style = true;线.
You can comment out the $.getscript line and ending }); as well as the window.disqus_no_style = true; line.
我有一个类似的问题,并发布了这个问题.***(Mohamed)试图回答我,但他的回答没有用,但是他在github上发布了指向他的代码的链接,我在那里找到了正确的答案.
I had a similar problem and posted this question. Mohamed attempted to answer me and his answer did not work but he'd posted a link to his code at github and I found the right answer there.