groupList(array, subGroupLength) {
let index = 0;
let newArray = [];
while(index < array.length) {
newArray.push(array.slice(index, index += subGroupLength));
}
return newArray;
},
groupList(array, subGroupLength) {
let index = 0;
let newArray = [];
while(index < array.length) {
newArray.push(array.slice(index, index += subGroupLength));
}
return newArray;
},
本文标题:vue中将数组分割成二维数组[[],[],[]]
本文链接:https://www.haomeiwen.com/subject/ztflgctx.html
网友评论