1

extjs を使用してビルドする Web アプリに問題があります。私はこのコードを持っています: コード

私が得るエラーはこれです: Uncaught TypeError: Cannot call method 'getProxy' of undefined this the 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

storage は関数であり、ストアを返すために実行する必要があります。試すstore: storge(),

于 2012-02-19T08:25:10.797 に答える
0

スニペットで、1 行目、17 行目、18 行目をすべて削除した場合は、34 行目を次のように変更します。

store : store,

あなたのコードは正常に動作します。

于 2012-02-20T05:46:04.410 に答える