zwcool
zwcool
  • 发布:2019-09-04 14:13
  • 更新:2019-09-04 14:13
  • 阅读:718

plus.share 分享ios 返回应用闪退,安卓是正常的

分类:HTML5+

var shares=null,sharewx=null;
// 监听plusready事件
document.addEventListener("plusready", function(){
// 扩展API加载完毕,现在可以正常调用扩展API
plus.share.getServices(function(s){
shares = s;
for(var i in s){
if('weixin'==s[i].id){
sharewx=s[i];
}
}
}, function(e){
alert( "获取分享服务列表失败:"+e.message );
});
}, false );
function shareWeixinMessage(){
sharewx.send( {content:"DCloud HBuilder-做最好的HTML5开发工具",href:"http://www.dcloud.io/",extra:{scene:"WXSceneSession"}}, function(){
alert("分享成功!");
}, function(e){
alert("分享失败:"+e.message);
});

2019-09-04 14:13 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复