在使用 xtype 的时候,若没有定义所使用的类名,会出现这样的错误信息,如

var panel = new Ext.Panel({
   ...
   items: [{
      xtype: 'button',
      text: 'OK'
   }]
};

在这里,若button没有定义,就会出现TypeError: namespace is undefined 的错误,很多时候是出现xtype写错的情况,如 button 写成 xutton

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-10-15
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案