- 博客(2)
- 收藏
- 关注
原创 关于在Ext.data.Model中使用mapping无效
先定义一个简单的Model: Ext.define("ProductModel", { extend: "Ext.data.Model", fields: [ { name: "product", // mapping: "p.name" // 这种写法也可以,使用下面的function是为了调试 mapping: function(data) { /...
2014-08-22 10:51:39 1464
cannot read property 'items' of undefined
今天在自定义类时出现这样一个错误,经过反复尝试和仔细阅读api后发现,我的自定义类继承了Ext.panel.Panel,并实现了initComponent方法,问题在于我的initComponent方法中没有调用callParent()。 API文档中关于initComponent()有这样一段话:“The initComponent method must contain a call to...
2014-08-18 16:00:29 1199
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人