grid.set({
columns: [
{ type: "indexcolumn" },
{ field: "loginname", width: 120, headerAlign: "center", allowSort: true, header: "单位", editor: { type: "textbox", minValue: 0, maxValue: 200, value: 25} },
{ field: "age", width: 100, headerAlign: "center", allowSort: true, header: "年月", editor: { type: "textbox"} },
{ field: "remarks", width: 120, headerAlign: "center", allowSort: true, header: "姓名", editor: { type: "textbox"} }
]
});
想向columns中动态添加元素,如何添加?