Extjs window autoload

var win = new Ext.Window({
                    title:'批量设置状态',
            //        el:'window-win',
                    layout:'form',
                    autoLoad:{
                        url:'setSuccInit.action',
                        params:{flag:0,sheetType:2},
                        scripts:true
                    },
                    600,
                    height:300,
                    x:150,
                    y:20,
                    colseAction:'close',
                    buttonAlign : 'center' ,
                    buttons:[{
                        text:'关闭',
                        handler: function(){win.close();}
                    }]
                });
                win.show();
原文地址:https://www.cnblogs.com/kunpengit/p/2773109.html