参数传递:
url: './bikeRent/bikeRent?lockID=' + lockID,
https://www.cnblogs.com/sese/p/9469699.html
json格式的数据传递
a传到b
//a
//user是js格式
//将json转成字符串
let userStr=JSON.stringify(user);
console.log(user);
wx.navigateTo({
url: '../../../../pages/map/myWallet/ActiveDetails/activeDetails?userStr='+userStr,
success: function(res){
// success
},
})
//b
let user = JSON.parse(options.userStr);
网友评论