三点运算符 (...)的用法 1:展开运算符 let a=[1,2,3]; let b=[0,...a,4];//[0,1,2,3,4] let obj ={a:1,b:2}; let obj2 ={...obj,c:3}; //{a:1,b:2,c:3}; let obj3 ={...obj,a:3};//{a:3,b:2} 2:剩余操作符,把剩余的东西放到一个array里面赋值给它 let a=[,,]; let [b,...c]=a; //b --1,c --[2,3] let a=[,…