Extjs TabPanel出错

时间:2011-12-05 12:16:48

标签: extjs

我在Firebug中收到此错误

instantiate()ext-debug.js (line 6634)
alias()ext-debug.js (line 2448)
app.js()app.js (line 9)
c is not a constructor
this.instantiators[length] = new Function('c', 'a', 'return new c('+args.join(',')+')');

它在第9行跟踪我的app.js文件,我创建了一个tabPanel

var tabPanel = Ext.create('Ext.tab.Panel', {
    region: 'center',
    id: 'centerPanel',
        items: [{
            title: 'Center Panel',
            autoScroll: true,
        }]
});

我已从面板内删除了所有代码但仍然出现错误。任何帮助将不胜感激。

尼科斯

1 个答案:

答案 0 :(得分:0)

该项目有未使用的逗号是否正常?

var tabPanel = Ext.create('Ext.tab.Panel', {
    region: 'center',
    id: 'centerPanel',
        items: [{
            title: 'Center Panel',
            autoScroll: true  ,  <<<====== here the comma is unused
        }]
});
相关问题