jQuery MiniUI

标题: dataGrid 更新数据构造的json数据列名如何自定义 [打印本页]

作者: coovol    时间: 2013-3-21 15:11:18     标题: dataGrid 更新数据构造的json数据列名如何自定义

本帖最后由 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"}]


作者: factory    时间: 2013-3-21 16:03:56

首先你给你的那一列定义一个name, name="asd"
然后 grid.updateColumn("asd",{field:"XXXX"}),XXX是你新的字段名




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2