0
누구든지 내 문제를 해결할 수 있습니까?모델에 Ext.data.store의 별칭 사용
모델을 만들고 해당 모델에 별칭 이름을 설정하고 Ext.data.store
에 동일한 별칭 이름을 사용하고 모델을 별칭 이름으로 설정했지만 작동하지 않지만 모델의 완전한 이름으로 작동합니다. 왜? documentation에서
Ext.define('lancet.asset.system.combobox.models.PathwayModel', { extend: 'lancet.def.system.model.Model', alias: 'widget.pathwaymodel', fields: [ { name: 'Id', type: 'string' }, { name: 'Name', type: 'string' }, { name: 'group', type: 'string' } ] });
Ext.create('Ext.data.Store', { model: 'lancet.asset.system.combobox.models.PathwayModel',//it's work autoLoad: true }
Ext.create('Ext.data.Store',{ model:'PathwayModel',//it doesn't work autoLoad:true}