【问题标题】:MERN-How to get data which is in arrayMERN-如何获取数组中的数据
【发布时间】:2021-12-31 05:01:18
【问题描述】:

我有一个 react-app .. 我不知道从 mongo db 的数组中获取数据的方法,该数组的结构为 image

我使用{this.props.obj.index} 获取索引值等等.. 但我不知道如何从数组{this.props.obj.songdata.object.songindex} 中获取。帮帮我

【问题讨论】:

  • 使用{this.props.obj.songdata[0].songindex}

标签: javascript arrays reactjs mongodb mern


【解决方案1】:

使用{this.props.obj.songdata[0].songindex}

【讨论】:

  • 标记为已回答
猜你喜欢
  • 2018-11-28
  • 2021-09-18
  • 1970-01-01
  • 2021-11-18
  • 2016-12-16
  • 2022-11-03
  • 2021-06-05
  • 2016-02-01
相关资源
最近更新 更多