【发布时间】:2015-10-31 10:43:46
【问题描述】:
对于 Facebook 和 Google,我找到了这个解决方案..
<script type="text/javascript">
$(document).ajaxComplete(function(){
try{
FB.XFBML.parse();
gapi.plusone.go();
}catch(ex){}
});
</script>
但不适用于 tumblr。有人知道是否有任何解决方案吗? Tubmlr-post-button 是这样实现的:
<a class="tumblr-share-button" data-href="http://www.xy.ch/news_entries/<? php echo "{$row['title']}.html" ?>" data-content="http://www.xy.ch/news_entries/<?php echo "{$row['title']}.html" ?>" data-color="blue" data-notes="right" href="https://embed.tumblr.com/share"></a>
谢谢 M
【问题讨论】:
-
Tumblr 支持人员告诉我,他们没有时间研究这样的问题 :(
-
$( "div" ).html( 'button code here' );? -
感谢您的帖子。我现在已经从 sharethis.com 获取了按钮。使用命令 "stButtons.locateElements()" -> stackoverflow.com/questions/7289021/… ajax 调用后会显示按钮。