美文网首页微信小程序
微信小程序:界面传值、取值/参数传递

微信小程序:界面传值、取值/参数传递

作者: 若风_412d | 来源:发表于2020-01-03 14:01 被阅读0次

https://www.jianshu.com/p/b2d912920a6a

参数传递:

                    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);

相关文章

网友评论

    本文标题:微信小程序:界面传值、取值/参数传递

    本文链接:https://www.haomeiwen.com/subject/pllmoctx.html