我在 extjs 中创建了一个面板。
当我执行此操作时,它显示以下错误: ' Uncaught 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
}]
});
}
});
谢谢
最佳答案
xtype
应该是一个字符串:
xtype: 'panel'
关于javascript - Uncaught ReferenceError : ContainerPanel is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25056744/