function splitNumberByGroup(str, group) {
var nums = str.split(',');
return nums.reduce((res, num, i) => {
res[i/group|0].push(num)
return res;
}, Array.from({length: Math.ceil(nums.length/group)}, () => []))
}
splitNumberByGroup('008,00801,008,00802,009,00901', 2)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…