` sliceArray(array, size) {
// console.log("array", array);
// console.log("size", size);
this.result = [];
for (var x = 0; x < Math.ceil(array.length / size); x++) {
var start = x * size;
var end = start + size;
this.result.push(array.slice(start, end));
}
// console.log("result", this.result);
},
this.sliceArray(this.resultList, 6);
批注:
1.this.resultList:数据列表
2.6:每页条数(可根据需求自行调整)