easyui 动态列
1 $.post('${createLink(action:"build Columns url ")}', params, function(data){ 2 var columns = []; 3 var col = []; 4 for(var i=0; i< data.length; i++){ 5 var v = data; 6 var c = {title:v.title, field:v.field, width:90}; 7 col.push(c); 8 } 9 columns[0] = col; 10 $('#datagrid').datagrid({columns:columns}); 11 },"json");