小程序转发
请问小程序转发携带的参数 为什么转发出去之后自己能够拿到参数,而被分享的用户点进去却拿不到参数???在线等,,,急急急
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 } |