//Explicit creation of contained Components: var panel = new Ext.Panel({ ... items: [ new Ext.Button({ text: 'OK' }) ] }; //Implicit creation using xtype: var panel = new Ext.Panel({ ... items: [{ xtype: 'button', text: 'OK' }]
转载于:https://www.cnblogs.com/fanzi2009/archive/2009/12/01/1614941.html