Skip to content
Share to weibo, qq, renren, douban etc..
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist [chore] merge
src [chore] merge
.editorconfig Initialize
.gitignore [feat] added the file header
README.md [chore] Updated README.md
bower.json
gulpfile.js
package.json

README.md

Share.js

Issues

分享到微博、微信、QQ、豆瓣和人人等社交网站, 基于jQuery.

示例

在线Demo

使用

Dom结构:

<ul data-url="xxx" data-message="some message" data-summary="summary" data-picture="xxx">
    <li data-network="weibo">微博</li>
    ...
</ul>

初始化:

$('ul').share();

API

  • data-url 分享的当前页面地址或者其他地址
  • data-message 分享的标题
  • data-summary 分享内容,「只对QQ空间、豆瓣、和人人有效」
  • data-picture 分享的图像

安装

通过Bower安装:

bower install share_zh.js --save

License

MIT

Something went wrong with that request. Please try again.