let alllist=res.data;
var result = [];
for (var i = 0; i < alllist.length; i += 3) {
result.push(alllist.slice(i, i + 3));
}
原文地址:https://www.cnblogs.com/future/p/10607038.html
时间: 2024-10-19 15:24:20
let alllist=res.data;
var result = [];
for (var i = 0; i < alllist.length; i += 3) {
result.push(alllist.slice(i, i + 3));
}
原文地址:https://www.cnblogs.com/future/p/10607038.html