1

我使用 extjs 构建的 Web 应用程序有问题。我有这个代码: 代码

好的,我得到的错误是: Uncaught TypeError: Cannot call method 'getProxy' of undefined this stacktrace:

Uncaught TypeError: Cannot call method 'getProxy' of undefined
Ext.define.constructorext-all-debug.js:44348
Base.callParentext-all-debug.js:2891
Ext.define.constructorext-all-debug.js:44877
Ext.Class.newClassext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiateext-all-debug.js:3948
Ext.ClassManager.instantiateByAliasext-all-debug.js:3898
(anonymous function)ext-all-debug.js:1555
Ext.define.statics.createext-all-debug.js:44241
Ext.define.lookupext-all-debug.js:26969
Ext.define.bindStoreext-all-debug.js:70975
Ext.define.initComponentext-all-debug.js:70756
Ext.define.constructorext-all-debug.js:15614
Base.callParentext-all-debug.js:2891
Ext.define.constructorext-all-debug.js:27103
Ext.Class.newClassext-all-debug.js:3188
(anonymous function)
Ext.ClassManager.instantiateext-all-debug.js:3948
(anonymous function)ext-all-debug.js:1555
(anonymous function)PageList.js:35
4

2 回答 2

2

storge 是一个函数,需要执行它才能返回一个 store。尝试store: storge(),

于 2012-02-19T08:25:10.797 回答
0

在您的代码片段中,如果您删除整个第 1、17 和 18 行,则将第 34 行更改为:

store : store,

您的代码将正常工作。

于 2012-02-20T05:46:04.410 回答