easyui 获取cloumns字段
var colums=datagrid.datagrid('options').columns; var frozens=datagrid.datagrid('options').frozenColumns; alert(colums[0].length+" - "+frozens[0].length); //拼接列头 var heads=new Array(); var index=0; //冻结列 for(var i=0;i<frozens[0].length;i++){ heads[index++]=frozens[0][i]; } //普通列 for(var i=0;i<colums[0].length;i++){ heads[index++]=colums[0][i]; } alert(heads);