1.0.7 • Published 3 years ago
share-action v1.0.7
share-action
open window/page to share some url
Usage
gnpm i @geekpark/share-action
import share from '@geekpark/share-action';
$('.js-share').on('click', function () {
var type = $(this).data('type');
share.run({ type });
});
Options
- type
weibo|twitter|linkdin
- url page url
- text share text
- des desciption, only linkdin
- thumb share image, only weibo
- appkey share by xxx, default to share by @GeekPark, only weibo
1.0.7
3 years ago