-1
我正在開發一個煎茶觸摸應用程序,如果可以做這樣的事情,這將是巨大的:如何將一個屬性從父項屬性轉換爲javascript中的子項? (OOP)
Ext.define('PUREM.view.screen.Form', {
person : null,
items : [
{xtype: 'mycomponent', person: parent.person}
]
});
顯然這個代碼不起作用。我想知道如何使它工作,如果有一種方法來使用子對象(xtype:'mycomponent')中父對象的「person」屬性。
你有問題要問? – kevhender
顯然這個代碼不起作用。我想知道如何使它工作,如果有一種方法來使用子對象(xtype:'mycomponent')中父對象的「person」屬性。 –