我想知道如何使用带有ShareThis社交分享插件的自定义URL。举个例子,我在我的index.php页面上有一篇文章总结taht链接到my-post.php,所以我想要做的是让用户从我的索引页面共享my-post.php。使用ShareThis社交分享插件的自定义URL
这里是sharethis.com
按钮的代码:
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
<span class='st_pinterest_hcount' displayText='Pinterest'></span>
JS:
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-448a73fe-e6c1-f7a5-f0a5-3912c860fc9e"});</script>
有用于ShareThis一个好的文档:http://support.sharethis.com/试一试回来当你失败! – yckart