js复制对象

$.extend(true,{},{apple: 0,banana: {weight: 52, price: 100},cherry: 97})

 

https://www.jianshu.com/p/e01b31f8e707

 

深度拷贝 会拷贝对象里面的对象 

posted @ 2018-07-27 11:17  suanmei  阅读(111)  评论(0编辑  收藏  举报