Extjs4 关联模型

Extjs4 关联模型,extjs4,Extjs4,我得到一个错误: Uncaught TypeError: Cannot call method 'indexOf' of undefined Ext.apply.urlAppend ext-all-debug.js:5040 Ext.define.buildUrl ext-all-debug.js:26324 Ext.define.buildRequest ext-all-debug.js:26148 Ext.define.doRequest ext-all-debug.js:26367 Ext

我得到一个错误:

Uncaught TypeError: Cannot call method 'indexOf' of undefined
Ext.apply.urlAppend ext-all-debug.js:5040
Ext.define.buildUrl ext-all-debug.js:26324
Ext.define.buildRequest ext-all-debug.js:26148
Ext.define.doRequest ext-all-debug.js:26367
Ext.define.read ext-all-debug.js:26117
Ext.define.inheritableStatics.load ext-all-debug.js:26603
(anonymous function) ext-all-debug.js:51162
(anonymous function) test.html:89
isEvent ext-all-debug.js:10117
call ext-all-debug.js:10073
我不知道什么是担心。我已经检查了FF中的实例结构,它确实具有函数getCategory。 谢谢

这是我们公司的样品。你把下面的句子弄错了:

The getCategory function was created on the Product model when we defined the association. This uses the Category's configured proxy to load the Category asynchronously, calling the provided callback when it has loaded. getCategory函数是在我们定义 协会。这将使用类别的已配置代理加载类别 异步地,在所提供的回调加载后调用它。 因此,此错误是因为类别模型中缺少代理配置

The getCategory function was created on the Product model when we defined the association. This uses the Category's configured proxy to load the Category asynchronously, calling the provided callback when it has loaded.