Extjs遇到的一些问题

寻找问题的方法:

确定错误的位置:删除可能出错的地方,进行调试。知道删到没有报错为止

 

 

1,问题    :   在使用initComponent初始化方法写表单是报   "Uncaught TypeError: Cannot read property ‘items’ of undefined"      

  解决方法  :   加上  this.callParent(arguments);    这句   顺便记得加上     生成页面  的方法  

  Ext.apply(this, {
    items : [form]
  });

posted @ 2018-04-11 17:06  备储小屁孩  阅读(84)  评论(0编辑  收藏  举报