Share Button 是一个简单轻量级、灵活而且好看的 jQuery 的分享按钮插件。
使用方法:
new Share(".share-button-top", { title: "Share Button", networks: { facebook: { app_id: "602752456409826", before: function() { console.log("BEFORE", this); this.url = "https://github.com/carrot/share-button"; this.text = "Changing the Facebook Share Configurations"; return this }, after: function() { console.log("User shared:", this.url); } } }});