SOURCE

let data = []
Array(1200).fill(null).forEach((item, i) => {
    data.push(i + 1)
})
console.log(data)
console.log('-----------------------')
function initData(data) {
    let arr = []
    let arrI = 0
    ret = []
    data.forEach((item, i) => {
        arr[arrI++] = data.splice(0, 10)
    })
    return arr
}
console.log(initData(data))





console 命令行工具 X clear

                    
>
console