代码如下:
var args = {
title: '123',
//href: '',
content: "456",
thumbs: [],
pictures: [],
extra: {}
};
var shares = null,
sharewb = null;
plus.share.getServices(function(s) {
shares = s;
for(var i in s) {
console.log(s[i].id);
if('sinaweibo' == s[i].id) {
sharewb = s[i];
console.log(JSON.stringify(sharewb));
sharewb.send(args, function() {
console.log(1);
}, function(e) {
**console.log(JSON.stringify(e));**
});
}
}
}, function(e) {
alert("分享失败:" + e.message);
});
console如下:
{"message":"未知错误,http://ask.dcloud.net.cn/article/282","code":64003}
小修的幻想 (作者)
ios10.3.1
2017-04-13 10:17