操作符
spread和rest操作符

spread和rest的区别spread和rest运算符都是...+变量/参数的形式。是spread还是rest,要根据上下文情境来判断。1.spread当被用于迭代器中时,它是spread操作符:console.log(1,....