First 进入官方网站:http://duoshuo.com/,选择我要安装,填写好信息后赋值代码到项目就OK了

如下是我复制的代码:

  <!-- 多说评论框 start -->
    <!--请将此处替换成文章在你的站点中的ID-->
    <div class="ds-thread" data-thread-key="messageBoard2" data-title="请替换成文章的标题" data-url="请替换成文章的网址"></div>
    <!-- 多说评论框 end -->
    <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
    <script type="text/javascript">
        var duoshuoQuery = { short_name: "shuai7boy" };
        (function () {
            var ds = document.createElement('script');
            ds.type = 'text/javascript'; ds.async = true;
            ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
            ds.charset = 'UTF-8';
            (document.getElementsByTagName('head')[0]
             || document.getElementsByTagName('body')[0]).appendChild(ds);
        })();
    </script>
    <!-- 多说公共JS代码 end -->
View Code

相关文章: