摘要: 经常看到讨论c#深拷贝,浅拷贝的博客,最近js写的比较多, 所以也来玩玩js的对象拷贝。下面是维基百科对深浅拷贝的解释:浅拷贝One method of copying an object is the shallow copy. In the process of shallow copying A, B will copy all of A's field values.If the field value is a memory address it copies the memory address, and if the field value is a primitive 阅读全文
posted @ 2013-07-15 17:15 记忆的森林 阅读(2647) 评论(4) 推荐(0) 编辑