我一個項目,我看到:什麼是Ext.apply xtype是什麼意思?
initComponent: function() {
var me = this;
Ext.apply(me, {
items: [
{
xtype: 'stockform'
}
]
});
me.callParent(arguments);
}
這是什麼意思?請告訴我。 我知道Ext.apply()是用來從源簡化許多屬性的複製到目標對象
var x = {a: 1, c:3, e:5};
Ext.apply(x, {b:2, d:4, f:6});
console.log(x); // Object {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6}