level 1
Clear痕迹
楼主
Ext.application({
name:"Form",
launch:function () {
panel = Ext.create('Ext.panel.Panel',
{ id:'formPanel', width:1024, height:1000, layout:'border', items: [
{region: 'north', xtype: 'label', height: 100, split: false,html: 'FORM1', margins: '0 5 5 5' },
{region: 'west', xtype: 'panel', margins: '5 0 0 5', width: 200, height: 500, id: 'div1', layout: 'border',items:[
{title: 'FORM2', region:'north', xtype: 'panel', x:0,width: 200, height: 300,collapsible: true, id: 'ziyuan', layout: 'fit' , items:[
]},
{title: 'FORM3', region:'north', xtype: 'panel', width: 200, x:0, y: 500, height:300, collapsible: true, id: 'banben', layout: 'fit', html:" ",}
]},
{ id: 'haha', name:'haha', title: '2222222', y:100, width:800,height:1000,layout:'column', items: [
{id:"superman", title: 'FORM4', columnWidth:.24, items:[
{html:"1111", height:20 }
]},
{id:"man", title: 'FORM5', columnWidth:.30, items:[
{html:"1111", height:20 }
]},
{id:"woman", title: 'FORM6', columnWidth:.40, items:[
{html:"111111", height:20 }
]},
{id:"baby", title: 'FORM7', columnWidth:.06, items:[
{xtype:'button', text: '111111', height:20, width:45 }
]}
]}
],
renderTo: Ext.getBody()
});
}
});
小弟刚刚开始学习EXT,有几个问题想问问各位高手,希望大家帮助回答,我在这里先谢过了!
1:怎么取到superman中items里的html,我试过不少方法完全取不到!
2:我现在的写法有什么不妥,需要改进些什么?
3:关于EXT4.0+它的功能包实在太大了,有没有好办法能够剔除无用的文件。I
2013年11月01日 02点11分
1
name:"Form",
launch:function () {
panel = Ext.create('Ext.panel.Panel',
{ id:'formPanel', width:1024, height:1000, layout:'border', items: [
{region: 'north', xtype: 'label', height: 100, split: false,html: 'FORM1', margins: '0 5 5 5' },
{region: 'west', xtype: 'panel', margins: '5 0 0 5', width: 200, height: 500, id: 'div1', layout: 'border',items:[
{title: 'FORM2', region:'north', xtype: 'panel', x:0,width: 200, height: 300,collapsible: true, id: 'ziyuan', layout: 'fit' , items:[
]},
{title: 'FORM3', region:'north', xtype: 'panel', width: 200, x:0, y: 500, height:300, collapsible: true, id: 'banben', layout: 'fit', html:" ",}
]},
{ id: 'haha', name:'haha', title: '2222222', y:100, width:800,height:1000,layout:'column', items: [
{id:"superman", title: 'FORM4', columnWidth:.24, items:[
{html:"1111", height:20 }
]},
{id:"man", title: 'FORM5', columnWidth:.30, items:[
{html:"1111", height:20 }
]},
{id:"woman", title: 'FORM6', columnWidth:.40, items:[
{html:"111111", height:20 }
]},
{id:"baby", title: 'FORM7', columnWidth:.06, items:[
{xtype:'button', text: '111111', height:20, width:45 }
]}
]}
],
renderTo: Ext.getBody()
});
}
});
小弟刚刚开始学习EXT,有几个问题想问问各位高手,希望大家帮助回答,我在这里先谢过了!
1:怎么取到superman中items里的html,我试过不少方法完全取不到!
2:我现在的写法有什么不妥,需要改进些什么?
3:关于EXT4.0+它的功能包实在太大了,有没有好办法能够剔除无用的文件。I