标签:
Object.prototype.clone = function(){
var o = this.constructor === Array ? [] : {};
for(var e in this){
o[e] = typeof this[e] === "object" ? this[e].clone() : this[e];
}
return o;
}
标签:
原文地址:http://www.cnblogs.com/camille666/p/ffffffffweee.html