var SplitArray = function (N, Q) { var R = [], F; for (F = 0; F < Q.length;) R.push(Q.slice(F, F += N)) return R } //5个一组 var splitTable = SplitArray(5, allArrayTable);