更新sharethis插件不适用于ajax
问题描述:
最近sharethis插件已更新。我已成功安装,它工作正常。但我无法在ajax调用上加载按钮。 我曾尝试使用以下更新sharethis插件不适用于ajax
stButtons.locateElements();
没有任何工作更增添了这个脚本
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=propertystring&product=inline-share-buttons"></script>
旧代码。
请注意我正在使用自定义分享按钮。
答
我确实找到了解决方案,至少对我有用。在模板加载后运行:
__sharethis__.initialize()
Hello Bilal,你有答案吗? –
任何人得到这个解决方案? –