js 数组分组chunk
function chunk(arr, size) { var result = []; for (var i = 0, len = arr.length; i < len; i += size) { result.push(arr.slice(i, i + size)); } return result; }
let rowsGroup = chunk(arr, 500);
function chunk(arr, size) { var result = []; for (var i = 0, len = arr.length; i < len; i += size) { result.push(arr.slice(i, i + size)); } return result; }