- 注册时间
- 2012-3-31
- 最后登录
- 2019-4-2
- 阅读权限
- 150
- 积分
- 18852
- 精华
- 0
- 帖子
- 8776
|
owl_seb 发表于 2012-7-24 09:08
好了问题已解决,谢谢
你的data是json字符串当然不行了,而且是grid.setData(data);不是grid.setData([data]);
你这样写
var data = '[{"zkzh":"2012110001","xm":"\u9EC4\u5FD7\u8C6A","zjhm":"44010219900424061X","bkzy":"\u5EFA\u7B51\u4E0E\u88C5\u9970\u5DE5\u7A0B"},{"zkzh":"2012110007","xm":"\u53F6\u8FD0\u7EA2","zjhm":"4.41424E+17","bkzy":"\u5EFA\u7B51\u4E0E\u88C5\u9970\u5DE5\u7A0B"}]';
var data2 = mini.decode(data);
grid.setData(data2 ); |
|