//对象和数组的深拷贝

Object.clone = function(sObj){
if(typeof sObj !== “object”){
return sObj;
}
var s = {};
if(sObj.constructor == Array){
s = [];……

查看详细