javascript 深拷贝对象

深拷贝polesResult,拷贝后sourceCopy成为与polesResult完全独立的对象

var sourceCopy=[].concat(JSON.parse(JSON.stringify(polesResult)));

posted on 2019-01-08 09:04  苹果园dog  阅读(125)  评论(0编辑  收藏  举报

导航