1、深拷贝数组 a = Array.from(b) 2、深拷贝对象 a=JSON.parse(JSON.stringify(b))
posted on 2023-08-08 17:20  秦小咪  阅读(16)  评论(0编辑  收藏  举报