let at=[1]; let bt=[2,[4,5,[7,8]]] at.push(...bt.flat(Infinity)); //Infinity,不传参数时,默认“拉平”一层,可以传入一个整数,表示想要“拉平”的层数。