复制代码 代码如下 : csscommonjs.deepcopy = function (json) {
if (typeof JSON == 'NUMBER'|| 유형 JSON == 'string'|| > if (json instanceof array) { var newarr = [], i, len = json.length; newarr [i] = arguments.callee (json [i]); return newarr; } else { var newobj = {}; newobj [name] = arguments.callee (json [name]);
}
return newobj;
}
}
}