我在 Extjs4 中使用 Ext.apply(obj1,configobject);让我们考虑这个示例:
var obj1 = {},
configobject = {
a: 'value',
d: 'somevalue',
c: {
c1 : 10,
c2 : 5,
c3 : 4
}
};
Ext.apply(obj1, configobject);
obj1.c={c2 : 25}
document.write(obj1.c.c1 + ', ' + obj1.c.c2 + ', ' + obj1.c.c3);
Now the value of obj.c.c1 and obj.c.c3 will show undefined, can anyone tell me the reason
谢谢