摘要: 浅拷贝: 对内存地址的复制,让目标对象指针和源对象指向同一片内存空间。注意:当内存销毁的时候,只想对象的指针,必须重新定义,才能够使用 代码: var a = {x:1} var b = a console.log(b);//{x:1} b.x = 2 console.log(b)//{x:2} c 阅读全文
posted @ 2021-02-24 15:34 Christianೄ೨ 阅读(285) 评论(0) 推荐(0) 编辑