页面传值一个json,在下个页面options取值时不正确?
发布于 6 年前 作者 yang29 1492 次浏览 来自 官方Issues

这是传值页面的  

这是下个页面接收值 接收过来的是这样

后边多了个:“undefined”

4 回复

看下navigateTo的新能力吧,示例代码

// 通过eventChannel向被打开页面传送数据

https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateTo.html

传值时试试先 encode: encoudeURIComponent(JSON.stringify())

var e = JSON.parse(options.orders)

回到顶部