//列表页
var aid='123';
wx.navigateTo({
url: '../AD/ad?aid=' + aid
})
内容页
onLoad: function (options) {
var aid = options.aid;
var that = this;
console.log(aid);//测试参数正确有值
that.setData({
aid: aid,
atmp:(new Date()).getTime()
})
},
- 当前 Bug 的表现(可附上截图)

- 预期表现
页面代码显示正确,但在webview里的调试就不正确了.setdata的数据没有被传过去.开始我们以为是微信缓存了.后来查看服务器的日志发现有错误.没有接到数据.
- 复现路径
列表页向内容页跳转有一定几率产生此bug,原因不明.但从载图来看确实是你们没有收到值.我同时也看了其它人也有反馈这个的:
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=00048289fd8738b9d7b67d05951800&highline=web&token=1532354892&lang=zh_CN
- 提供一个最简复现 Demo
微信小程序开发相关问题解答;本文来自微信小程序工厂 http://www.xcxgc.com 转载请保留。
本文网址:http://www.91bianli.com/kaifazhinan/66359.html