2015-01-09 6 views

답변

2
Ext.define('Mother', { 
    uses: ['Child'], 
    giveBirth: function() { 
     // This code might, or might not work: 
     // return new Child(); 

     // Instead use Ext.create() to load the class at the spot if not loaded already: 
     return Ext.create('Child'); 
    } 
}); 

목록을 찾을 수 있습니다. 이것들은,이 클래스가 작성되기 전에 필사적으로로드되지 않고, Ext.onReady 청취자가 불려 가기 전에 사용 가능한 것이 보증되고 있습니다.