我正在尝试在动态加载的内容上加载addthis按钮,但即使脚本已加载,addthis工具栏也不会出现。
jQuery(".somediv").html(response); // dynamically loaded content
jQuery.getScript("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-53a011f32e6cd338")
.done(function () {
addthis.init();
addthis.toolbox('.addthis_sharing_toolbox');
})
以下是HTML内容:
<div class="addthis_sharing_toolbox"></div>
请帮忙。