data数据:

data: {
    assets: null
}

setData方法,使用["对象.属性"]的方式来更新某个属性的值。

this.setData({ ["assets.diamonds"]: diamonds });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-01-02
猜你喜欢
  • 2022-02-17
  • 2021-06-30
  • 2022-01-05
  • 2021-12-30
  • 2021-07-25
相关资源
相似解决方案