jQuery MiniUI

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

mini.DataGrid 的url面的数据,如下,怎样让这些数据填到表格 [复制链接]

Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2014-10-29 15:01:28 |只看该作者 |倒序浏览
之前{"data":["bz":"bz","cjr":"gyc","cjsj":1414486673000,"jldw":"jldw","pmdm":"pmdm","pmmc":"pmmc","px":"px","scbj":"y","sjpmdm":"sjdm","sjpmmc":"sjmc","xgr":"xgz","xgsj":1414486673000},
"bz":"bz","cjr":"gyc","cjsj":1414486673000,"jldw":"jldw","pmdm":"pmdm","pmmc":"pmmc","px":"px","scbj":"y","sjpmdm":"sjdm","sjpmmc":"sjmc","xgr":"xgz","xgsj":1414486673000}
]}
这种的直接给个url就可以了,但是下面这种怎么让它填入表格呀?
{"data":{"data":[{"bz":"bz","cjr":"gyc","cjsj":1414486673000,"jldw":"jldw","pmdm":"pmdm","pmmc":"pmmc","px":"px","scbj":"y","sjpmdm":"sjdm","sjpmmc":"sjmc","xgr":"xgz","xgsj":1414486673000},{"bz":"bz","cjr":"gyc","cjsj":1414486670000,"jldw":"jldw","pmdm":"pmdm","pmmc":"pmmc","px":"px","scbj":"y","sjpmdm":"sjdm","sjpmmc":"sjmc","xgr":"xgz","xgsj":1414486670000}]},"message":"你好啊","status":"succeed","succeed":true}

Rank: 8Rank: 8

沙发
发表于 2014-10-29 15:21:51 |只看该作者
dataField="data.data"

Rank: 3Rank: 3

板凳
发表于 2014-10-29 15:31:49 |只看该作者
dforce 发表于 2014-10-29 15:21
dataField="data.data"

报错了,还是不行呀

Rank: 8Rank: 8

地板
发表于 2014-10-29 15:34:13 |只看该作者
春花之石 发表于 2014-10-29 15:31
报错了,还是不行呀

你不是url返回这个数据吗?
还是ajax获取到这些数据,你要静态赋值

Rank: 3Rank: 3

5#
发表于 2014-10-29 15:37:49 |只看该作者
dforce 发表于 2014-10-29 15:34
你不是url返回这个数据吗?
还是ajax获取到这些数据,你要静态赋值

打算是在标签里面的url这几个给数据个路径呢!但是不行,ajax怎么实现?我是菜鸟请大神指教

Rank: 8Rank: 8

6#
发表于 2014-10-29 15:42:01 |只看该作者
春花之石 发表于 2014-10-29 15:37
打算是在标签里面的url这几个给数据个路径呢!但是不行,ajax怎么实现?我是菜鸟请大神指教 ...


如图

附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

Rank: 3Rank: 3

7#
发表于 2014-10-29 16:07:22 |只看该作者
dforce 发表于 2014-10-29 15:42
如图

好了,谢谢你了!么么哒

Archiver|普加软件

GMT+8, 2024-11-15 12:31 , Processed in 1.055560 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部