分享出去的页面所获取的变量在app.js 中可以拿到 通过 [代码]App({[代码][代码] [代码][代码]onLaunch: [代码][代码]function[代码] [代码](query) { [代码][代码]console.log(query.query)[代码][代码]}[代码][代码]})[代码]
小程序转发请问小程序转发携带的参数 为什么转发出去之后自己能够拿到参数,而被分享的用户点进去却拿不到参数???在线等,,,急急急 [代码]onShareAppMessage: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]var[代码] [代码]that= [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]a=[代码][代码]this[代码][代码].data.b[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'xxxxx[代码][代码],[代码][代码] [代码][代码]path: [代码][代码]'/pages/xxxxx/xxxxx?a='[代码] [代码]+ a,[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]// 转发成功[代码][代码] [代码][代码]console.log([代码][代码]"转发成功:"[代码] [代码]+ JSON.stringify(res));[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]// 转发失败[代码][代码] [代码][代码]console.log([代码][代码]"转发失败:"[代码] [代码]+ JSON.stringify(res));[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码]onLoad: [代码][代码]function[代码] [代码](options) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]var[代码] [代码]option = options;[代码][代码] [代码][代码]var[代码] [代码]a= options.a[代码][代码]}[代码]
2018-08-09