【发布时间】:2026-02-19 09:30:01
【问题描述】:
如果对象的键是数字,如何将所有活动的属性更新为 false:
{
"id": 1,
"items": {
"2": {
"id": 2,
"active": true
},
"3": {
"id": 3,
"active": true
},
"5": {
"id": 5,
"active": true
}
},
"status": true
}
【问题讨论】: