📅  最后修改于: 2022-03-11 14:48:29.131000             🧑  作者: Mango
let origArrayOne = [ 1, 2, 3]; //1,2,3
let origArrayTwo = [ 4, 5, 6]; //4,5,6
//Create new array from existing array
let copyArray = [...origArrayOne]; //1,2,3
//Create new array from existing array + more elements
let newArray = [...origArrayOne, 7, 8]; //1,2,3,7,8
//Create array by merging two arrays
let mergedArray = [...origArrayOne, ...origArrayTwo]; //1,2,3,4,5,6