{
"item1" : [{"index":"1"},{"id":"1","name":"npm","result":"expected text1"},{"id":"2","name":"yarn","result":"expected text2"},{"id":"3","name":"pnpm","result":"expected text3"}],
"item2": [{"index":"2"},{"id":"1","name":"npm","result":"expected text1 for item2"},{"id":"2","name":"yarn","result":"expected text2 for item 2"},{"id":"3","name":"pnpm","result":"expected text3 for item 2"}]
}
我想使用 for 循环访问 item1 和 item2?我该怎么做?
1 个回答