let list = ["zs", "ls", "ww"];
let list2 = [18, 19, 20];
let list3 = ['老', '弱']
Array.concat() 合并两个数组, 返回新数组,不会改变原数组
let arr = list.concat(list2, list3)
展开运算符 […list1, …list2,······]
let arr = [...list, ...list1, ...list2]
push(…arr), 会更改原数组
list.push(...list2, ...list3)
for + push
for(let i in list2) {
list.push(list2[i])
}
arr1.push.apply(arr1, arr2)
list.push.apply(list, list2)