永发信息网

jquery向数组动态添加元素

答案:2  悬赏:60  手机版
解决时间 2021-02-07 01:49
  • 提问者网友:流星是天使的眼泪
  • 2021-02-06 20:16
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中增加元素,如何添加?
最佳答案
  • 五星知识达人网友:鱼芗
  • 2021-02-06 21:46
请说明具体在哪加,直接这么写,对象已作为形参传入并被FN调用。
全部回答
  • 1楼网友:老鼠爱大米
  • 2021-02-06 22:59
基于jquery的grid有很多,你这是哪种? 将js文件附加上来看看。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯