用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
# 弹出窗口分享 ### **BSL.Share('content','imageurl', 'targetUrl', 'title' ,'callbackMethod')** 弹出原生窗选择分享平台 ![](http://h-img.bslyun.com/a641b6015c699e606f6c089f302c1dd3) | 参数 | 必填 | 说明 | | --- | --- | --- | | content | 是 | 分享内容 | | imageurl | 是 | 分享图标 | | targetUrl | 是 | 分享链接 | | title | 是 | 分享标题 | | callbackMethod | 是 | 自定义回调函数,返回函数定义在最外层。 | ### **callbackMethod 返回值** | 编码 | 说明 | | --- | --- | | 1 | 分享成功 | | 0 | 分享失败 | ~~~ <script> function Share(result){ if(result == '1'){ alert('分享成功'); }else{ alert('分享失败'); } } </script> <a href="#" onclick="BSL.Share('分享内容', 'http://www.chuxueyun.com/demo/img/share.png', 'http://www.chuxueyun.com/demo/', '分享标题' , 'Share')">分享</a> //示例中的图片不存在,无法分享的。请更换为实现存在的图片网址。 ~~~