dataForWx = { "link": "http://evp.51job.com/2021/jihualab/", //微信链接 "imgUrl": "http://evp.51job.com/2021/jihualab/logo.jpg", //微信logo "title": "未来立见", //微信标题 "desc": "季华实验室2021届校园招聘", }; wx.config({ debug: false, appId: 'wx16a30236aa49a0d1', timestamp: 1743772897, nonceStr: 'PskoXcGY3lSxz3aW', signature: 'ffff67bc65af39dcc9fc52ffc3d16381ace673a2', jsApiList: [ 'onMenuShareAppMessage', 'onMenuShareTimeline' ] }); wx.ready(function() { wx.onMenuShareAppMessage({ title: dataForWx.title, desc: dataForWx.desc, link: dataForWx.link, imgUrl: dataForWx.imgUrl, fail: function (res) { alert(JSON.stringify(res)); } }); wx.onMenuShareTimeline({ title: dataForWx.title, link: dataForWx.link, imgUrl: dataForWx.imgUrl, fail: function (res) { alert(JSON.stringify(res)); } }); });