未捕获的ReferenceError:未定义ContainerPanel

时间:2014-07-31 10:35:34

标签: javascript extjs

我在extjs中创建了一个面板。

当我执行此操作时,它显示此错误: '未捕获的ReferenceError:未定义ContainerPanel'

请纠正我错在哪里。

我的代码如下所示:

 Ext.application({
 launch : function(){
                Ext.create('Ext.panel.Panel',{
                    renderTo:Ext.getBody(),
                    width:400,
                    height:400,
                    title:ContainerPanel,
                    items: [
                            {
                                xtype:panel,
                                height:100,
                                width:200,
                                columnWidth:0.5

                            },

                            {
                                xtype:panel,
                                height:100,
                                width:200,
                                columnWidth:0.5

                            }]

                });
            }

});

由于

1 个答案:

答案 0 :(得分:1)

xtype应为字符串:

xtype: 'panel'