MERN-如何获取数组中的数据
MERN-How to get data which is in array
我有一个 react-app .. 我不知道从 mongo db 的数组中获取数据的方法,它的结构是 image
我用 {this.props.obj.index}
来获取索引值等等..但我不知道如何从数组 {this.props.obj.songdata.object.songindex}
中获取。帮帮我
使用{this.props.obj.songdata[0].songindex}
我有一个 react-app .. 我不知道从 mongo db 的数组中获取数据的方法,它的结构是 image
我用 {this.props.obj.index}
来获取索引值等等..但我不知道如何从数组 {this.props.obj.songdata.object.songindex}
中获取。帮帮我
使用{this.props.obj.songdata[0].songindex}