📌  相关文章
📜  js 从数组中删除几个元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:24.208000             🧑  作者: Mango

代码示例5
var arr1 = [1, 2, 3, 4, 5, 6];var arr2 = arr1; // Reference arr1 by another variable arr1 = [];console.log(arr2); // Output [1, 2, 3, 4, 5, 6]