Javascript 将此工具箱添加到多个项中
我正在尝试将addThis工具箱用于页面上的多个项目。我一直在读,我需要使用addthis:url属性为各个项目生成正确的url 我所拥有的是:Javascript 将此工具箱添加到多个项中,javascript,php,addthis,Javascript,Php,Addthis,我正在尝试将addThis工具箱用于页面上的多个项目。我一直在读,我需要使用addthis:url属性为各个项目生成正确的url 我所拥有的是: <!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-535e7a29
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-535e7a2916e104ff" async="async"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox" style="margin-bottom:20px;" addthis:title="THE TITLE" addthis:description="THE DESCRIPTION" addthis:url="<?php echo $this->item->link; ?>"></div>
addthis:title、addthis:description和addthis:url参数用于我们较旧的高级配置工具,其中包含按钮代码
要使用addthis\u sharing\u工具箱,您需要使用以下代码:
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-535e7a2916e104ff" async="async"></script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox" style="margin-bottom:20px;" data-title="THE TITLE" data-url="<?php echo $this->item->link; ?>"></div>
我觉得您在javascript代码的src中丢失了,路径看起来像breakedNo,路径是正确的。这是您在他们的站点上创建时生成的代码。它也适用于个人页面。谢谢你,保罗。您将如何包含描述?我们几乎不支持添加描述的任何服务。是否有一个特定的服务,你共享,你想包括一个描述吗?没有忘记这一点。我只是认为这也是一个重要的参数。不用担心;-)