调用操作系统分享接口
时间:2022-03-19 15:24:44查看量:3803

苹果纯文本分享(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>
上一篇:App微信登录
下一篇:支付宝App支付

咨询客服

关注我们

返回顶部

QQ客服
微信客服
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持
官方公众号
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持