我想知道如何使用帶有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