function deepCogy(obj){
if(typeof obj != 'object' || obj == null){
return obj;
}
let copy = {};
if(obj.constructor === Array){
copy = [];
}
for(let key in obj){
copy[key] = deepCogy(obj[key]);
}
return copy;
}
9461

被折叠的 条评论
为什么被折叠?



