deepCopy: function (data) {
if (data === null || data === undefined) {
return null;
}
let result = Array.isArray(data) ? [] : {};
if (data && typeof data === 'object') {
for (let key in data) {
if (data[key] && typeof data[key] === 'object') {
result[key] = this.deepCopy(data[key]);
} else {
result[key] = data[key];
}
}
}
return result;
},
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net