var obj1 = new obj();
var obj2 = obj1.clone();
obj2.BusinessLine = businessLine2;
console.log(obj2.BusinessLine); // businessLine2
console.log(obj1, obj2); // businessLine1, businessLine1
obj2.loadClone(obj1); //irrelevant
console.log(obj1, obj2);
jsfiddle here。我定义了一个新对象,用$ .extend克隆它,并更改链接到对象的克隆属性之一。 console.log(clone.property)显示新值,但console.log(clone)显示旧值。