摘要: 1. 技巧性深浅拷贝 1.1 数组的浅拷贝 数组,我们可以利用数组的一些方法比如:slice、concat 返回一个新数组的特性来实现拷贝。 let arr = ['old', 1, true, null, undefined, { old: "old" }]; let new_arr = arr. 阅读全文
posted @ 2021-09-25 22:37 青柠i 阅读(47) 评论(0) 推荐(0) 编辑