se.timestamp, nonceStr: response.nonceStr, signature: response.signature, jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo'] }); wx.ready(function () { wx.onMenuShareTimeline({ title: shareTxt, link: shareurl, imgUrl: sharephoto, success: function () { console.log('转发成功'); } }); wx.onMenuShareAppMessage({ title: shareTxt, desc: shareesac, link: shareurl, imgUrl: sharephoto, success: function () { console.log('转发成功'); } }); wx.onMenuShareQQ({ title: shareTxt, desc: shareesac, link: shareurl, imgUrl: sharephoto }); wx.onMenuShareWeibo({ title: shareTxt, desc: shareesac, link: shareurl, imgUrl: sharephoto }); }); } } }); } wxShare();