let data = [
220, 182, 191, 234, 290, 730, 310, 123, 442, 321, 90, 149,
].map((item, index) => {
return {
name: index + 1,
value: item,
}
})
[数组]将一维数组变二维数组
最新推荐文章于 2023-03-21 21:15:00 发布
let data = [
220, 182, 191, 234, 290, 730, 310, 123, 442, 321, 90, 149,
].map((item, index) => {
return {
name: index + 1,
value: item,
}
})