📌  相关文章
📜  javascript 从数组中删除多个项目 - Javascript 代码示例

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

代码示例6
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]