如何把这种数据
转换成
这是自己写的
,结果
let data = {
listA: ['A1','A2','A3','A4','A5','A6','A7','A8','A9'],
listB: ['B1',"B2","B3",'B4',"B5","B6","B7","B8","B9"],
listC: ['C1',"C2","C3",'C4',"C5","C6","C7","C8","C9"]
}
let result = data.listA.map((v, i) => ({data: Object.entries(data).map(it => it[1][i])}))
10 回答11.3k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
3 回答1.5k 阅读✓ 已解决
3 回答2.4k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决