我应该如何在ExtJS 6.2.1的实用程序类中使用存储?
在Grid组件中可以这样做:
Ext.define('App.MyGrid', {
extend : 'Ext.grid.Grid',
store : 'myStore',
});
如果我在我的类中这样做:
Ext.define('App.MyClass', {
singleton : true,
store : 'myStore',
});
则store
只是一个字符串。
您可以使用:
Ext.StoreManager.lookup(STORE_NAME)