function wxshare(title,excerpt,url,image){
wx.config({
debug: false,
appId: 'wxc98aa3c4992a7047',
timestamp: '1720177580',
nonceStr: 'F54msI1B1yBn897V',
signature: '4a14edc024ede087f8a756f658658c0c642fb593',
jsApiList: [
'updateAppMessageShareData',
'updateTimelineShareData'
]
});
wx.ready(function () {
//“分享给朋友”及“分享到QQ”按钮的分享内容
wx.updateAppMessageShareData({
title: title,
desc: excerpt,
link: url,
imgUrl: image,
success: function () {}
});
//“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
wx.updateTimelineShareData({
title: title,
link: url,
imgUrl: image,
success: function () {}
});
});
}