|

楼主 |
发表于 2016-12-25 13:31:01
|
显示全部楼层
Model.prototype.pengyouquanClick = function(event) {
function success(result) {
alert(JSON.stringify(result));
}
function error(result) {
alert(JSON.stringify(result));
}
navigator.weixin.share({
message : {
title : "WeX5开发指南",
description : "分享到微信",
mediaTagName : "Media Tag Name(optional)",
thumb : "http://YOUR_THUMBNAIL_IMAGE",
media : {
// type: weixin.Type.WEBPAGE, // webpage
webpageUrl : window.location.href
// webpage
}
},
scene : navigator.weixin.Scene.TIMELINE
}, success, error);
};//分享到微信朋友圈
问题是 分享按钮。怎么调起 Model.prototype.pengyouquanClick呢? |
|