jQuery MiniUI

 找回密码
 立即注册
查看: 2745|回复: 1
打印 上一主题 下一主题

dataGrid 更新数据构造的json数据列名如何自定义 [复制链接]

Rank: 1

跳转到指定楼层
楼主
发表于 2013-3-21 15:11:18 |只看该作者 |倒序浏览
本帖最后由 coovol 于 2013-11-14 00:55 编辑

data[{"port":80,"id":4,"title":"www","cate":"http","status":true,"url":"status.php","descs":"","ip":"v.k2.cn","_uid":0,"_index":0,"_state":"modified"}]

比如

data[{"run.port":80,"id":4,"title":"www","cate":"http","status":true,"url":"status.php","descs":"","ip":"v.k2.cn","_uid":0,"_index":0,"_state":"modified"}]

Rank: 8Rank: 8

沙发
发表于 2013-3-21 16:03:56 |只看该作者
首先你给你的那一列定义一个name, name="asd"
然后 grid.updateColumn("asd",{field:"XXXX"}),XXX是你新的字段名

Archiver|普加软件

GMT+8, 2024-11-27 22:30 , Processed in 1.040306 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部