|
你好,我要是想把一张图片分享到朋友全,请问下面的代码正确吗?下面的代码在运行的时候没有任何反应,然后程序就退出了
navigator.weixin.share({
message : {
title :"1212",
description : "12121",
thumb : "https://img1.yimago.cn/item/cdbacc3e629a4cfdb56fa46eddbd91d2.jpg",
media : {
type:navigator.weixin.Type.IMAGE,
webpageUrl : "https:www.baidu.com"
}
},
scene : navigator.weixin.Scene.TIMELINE
}, function(result) {
justep.Util.hint("分享成功!");
alert(2);
me.OffClick();
}, function(result) {
alert(4);
alert(JSON.stringify(result));
me.OffClick();
});
alert(5);
|
|