// Using extjs 3.x
var box = new Ext.Textfield { /* textField configuration */ };
var form = new Ext.FormPanel{
/* formPanel configuration */
items:[box]
}
这工作正常,但我想创建多个实例,box
这样当我创建多个实例时form
我不会损坏box
,我也不想使用数组。请建议一种更好的方法来创建和管理多个实例Ext.Component