Open LofiSu opened 2 months ago
const arr1 = ['a', 'b', [1, 2]]; const arr2 = ['c']; const arr3 = [...arr1, ...arr2];
arr1[2][0] = 9999; // 修改 arr1 中的数组成员值 console.log(arr3); // 输出 ['a', 'b', [9999, 2], 'c']
const arr1 = ['a', 'b', [1, 2]]; const arr2 = ['c']; const arr3 = [...arr1, ...arr2];
arr1[2][0] = 9999; // 修改 arr1 中的数组成员值 console.log(arr3); // 输出 ['a', 'b', [9999, 2], 'c']