寻找问题的方法:
确定错误的位置:删除可能出错的地方,进行调试。知道删到没有报错为止
1,问题 : 在使用initComponent初始化方法写表单是报 "Uncaught TypeError: Cannot read property ‘items’ of undefined"
解决方法 : 加上 this.callParent(arguments); 这句 顺便记得加上 生成页面 的方法
Ext.apply(this, {
items : [form]
});