ExtJS -添加存储工具类



我应该如何在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)

相关内容

最新更新