var panelDeploy=Ext.create('Ext.panel.Panel',{
title:'面板'+count,
id:'aaaa'+count,
//layout:'fit',
width:400,
height:300,
frame:true,
draggable:true,
resizable:true,
bodyPadding: 10,
items:[{
xtype:'button',
text:'配置',
id:'set'+count,
handler:function(){addChart(count);},
height:30,
}]
}) ;
var addChart=function(s){
var ss='aaaa'+s;
}
addChart为自定义函数,为所传的参数