...点copy是浅拷贝var obj1 = [1,{a: 1}];//var obj2 = Object.assign( {}, obj1);//浅copy//var obj2 = JSON.parse(JSON.stringify(obj1));//深copyvar obj2 = [...obj1];//浅copyobj2[1].a = 5;obj1;