传:
1.  JSON.stringify(object); 转String 
2.encodeURIComponent编码
 
 var currentObj =encodeURIComponent(JSON.stringify(e.currentTarget.dataset.index));

            wx.navigateTo({
                url: '../../pages/order/orderDetail/orderDetail?currentObj=' + currentObj
            });
 
 
================================================
接收:
1.String 转对象  JSON.parse(String)
2.decodeURIComponent解码
 
  var currentObj = JSON.parse(decodeURIComponent(options.currentObj));
        console.log("currentObj",currentObj);

相关文章:

  • 2021-08-22
  • 2022-02-08
  • 2021-11-22
猜你喜欢
  • 2022-03-03
  • 2022-01-08
  • 2021-11-18
  • 2021-07-05
  • 2022-12-23
  • 2021-07-05
  • 2021-04-20
相关资源
相似解决方案