🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 系统分享js调用方法 系统分享非官方提供接口,可不申请权限。同样也没有回调。 苹果纯文本分享(SystemShareTxt)只支持填写网址链接,不支持纯文本。 ### BSL.SystemShareTxt(content); //纯文本分享 | 参数| 必填| 说明 | | --- |---| --- | | content| 是|分享的文本内容 | ``` <a href="#" onclick="BSL.SystemShareTxt('系统分享测试')">纯文本分享</a> ``` ***** ### BSL.SystemShareImg(image); //单图分享 | 参数| 必填| 说明 | | --- |---| --- | | image| 是|分享的图片链接 | ``` <a href="#" onclick="BSL.SystemShareImg('http://open-qiniu.appbsl.com/sources/94830/329681/qr_test.png')">单图分享</a> ``` ***** ### BSL.SystemShareImgs(images); //多图分享 | 参数| 必填| 说明 | | --- |---| --- | | images| 是|分享的图片链接字符串数组 | ``` <script> function SharedImg(){ var data = ["http://www.appbsl.cn/demo/img/share1.png", "http://www.appbsl.cn/demo/img/share2.png", "http://www.appbsl.cn/demo/img/share3.png", "http://www.appbsl.cn/demo/img/share4.png"]; BSL.SystemShareImgs(data); } </script> <a href="#" onclick="SharedImg()">多图分享</a> ```