Javascript ExtJS窗口don';行不通
我想学习ExtJs,一开始我遇到了一个问题。不显示所需的窗口 这是我的密码Javascript ExtJS窗口don';行不通,javascript,extjs,Javascript,Extjs,我想学习ExtJs,一开始我遇到了一个问题。不显示所需的窗口 这是我的密码 签出此代码。工作如期进行 Ext.onReady(function(){ new Ext.Window({ title: 'Accordion Window', width: 200, height: 200, layout: 'accordion', border: false, layoutConfig : { animate : true
签出此代码。工作如期进行
Ext.onReady(function(){
new Ext.Window({
title: 'Accordion Window',
width: 200,
height: 200,
layout: 'accordion',
border: false,
layoutConfig : {
animate : true
},
items : [{
xtype: 'panel',
title: 'Plain Panel',
html: 'Plain Panel 1'
},{
xtype: 'panel',
title: 'Plain Panel',
html: 'Plain Panel 2'
}]
}).show();
});
您使用的是什么版本的extjs?但是,通过此代码,它可以使用函数buildWindow(){var win=new Ext.Window({title:'Accordion Window',width:200,height:150,layout:'Accordion',border:false,layoutConfig:{animate:true},items:[{xtype:'panel',title:'Plain panel',html:'panel with a xtype specified'},{title:'Plain panel 2',html:'panel with no xtype specified'}]});win.show();}Ext.onReady(buildWindow);