Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ExtJS窗口don';行不通_Javascript_Extjs - Fatal编程技术网

Javascript ExtJS窗口don';行不通

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

我想学习ExtJs,一开始我遇到了一个问题。不显示所需的窗口

这是我的密码


签出此代码。工作如期进行

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);