【发布时间】:2021-02-17 07:22:10
【问题描述】:
我不想获取数组中每个对象的 ID。
我有这个数组
[
{
"-ML8Lx8jOSv64Ecat611": {
"category": "Automotive Parts & Accessories",
"description": "I will be there at least but I don't know if I can help in any way I can",
"item": "Apple Watch",
"price": "429,99",
"timestamp": "2020-11-02T21:28:11+07:00",
"viewCount": 0
}
}
]
我期望得到的是
[
{
"category": "Automotive Parts & Accessories",
"description": "I will be there at least but I don't know if I can help in any way I can",
"item": "Apple Watch",
"price": "429,99",
"timestamp": "2020-11-02T21:28:11+07:00",
"viewCount": 0
}
]
【问题讨论】:
标签: arrays json firebase react-native firebase-realtime-database