数组分组
/**
* arry:数组, length:多少长度为一组
*/ group_arry(arry, length) { let index = 0; let new_arry = []; if (arry.length > length) { while (index < arry.length) { new_arry.push(arry.slice(index, index += length)); } } else { new_arry = [arry]; } return new_arry; }