【发布时间】:2011-09-12 00:24:25
【问题描述】:
我收到一个错误:dokedItems 为 null 或不是对象。 我想知道当我定义一个定义EXTJS4类的类时我应该怎么做。
Ext.define("com.yx.MyPanel", {
extend: "Ext.panel.Panel",
config: {
title: "Clannad",
width: 100,
height: 100
},
constructor: function(config) {
this.initConfig(config);
this.callParent([config]);
}
});
Ext.create("com.yx.MyPanel", {
renderTo: Ext.getBody()
});
【问题讨论】:
标签: extjs4