var p;
Ext.Ajax.request({
url : '1.txt',
params : { objectID : 18 },
success : function(json) {
response = Ext.decode(json.responseText);
p = new Ext.form.FormPanel({
frame:true,
bodyStyle :'padding:5px 0 5px 5px',
width : 450,
autoHeight:true,
defaults : {autoWidth : true},
hideLabels: true,
defaultType : 'checkbox',
layout : 'table',
layoutConfig: {
columns: 4
},
items : response
});
}
});
return p;
1.txt内容是:
[{xtype:'checkbox',boxLabel:'部门1111111',name:'bm1',id:'bm_1', anchor:'95%'}]
http://evanwukong.blog.163.com/blog/static/13483649520102454640366/