微信小程序
Mr卞先生
这个作者很懒,什么都没留下…
展开
-
微信小程序页面跳转返回后携带数据
微信小程序页面跳转返回后携带数据 说明:A页面通过navigateTo跳转到B页面,B页面通过navigaBack回退到A页面,并给A页面传递数据。 A页面关键代码: choiceAddr:function(e) { const that=this; wx.navigateTo({ url: '../B/B', events:{ getData:function(data){ that.setData({原创 2020-08-18 11:47:56 · 531 阅读 · 0 评论 -
微信小程序通过setdata()给对象数组的某个属性赋值
1. JSON数据中对象嵌套对象 参考数据: goods: { _id: "cdf41d825f238330001f99b71152b3eb", addDateTime: 1596162864246, goodsCount: 5, lastaddDateTime: 1596354734829, goodsInfo: { goodsid: "84e72bb95f228c620015f65a36eddb6d", name: "松子", specs: "300克",原创 2020-08-02 16:35:02 · 3213 阅读 · 1 评论