微信小程序wx.navigateTo带json数据跳转页面
如原页面数据var params = { content: content, fontWidth: that.data.width, direction: that.data.direction, fontSize: that.data.fontSize, speed: that.data.speed, bgColor: that.data.bgcolor, color: that.data.color }let arr=JSON.stringify(params); wx.navigateTo({ url: 'show_danmu?tempArr='+arr, })新页面接收数据onLoad: function (options) { let arr=JSON.parse(options.tempArr); console.log(arr);}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

