jQuery MiniUI

标题: mini.DataGrid 的url面的数据,如下,怎样让这些数据填到表格 [打印本页]

作者: 春花之石    时间: 2014-10-29 15:01:28     标题: mini.DataGrid 的url面的数据,如下,怎样让这些数据填到表格

之前{"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}


作者: dforce    时间: 2014-10-29 15:21:51

dataField="data.data"
作者: 春花之石    时间: 2014-10-29 15:31:49

dforce 发表于 2014-10-29 15:21
dataField="data.data"

报错了,还是不行呀
作者: dforce    时间: 2014-10-29 15:34:13

春花之石 发表于 2014-10-29 15:31
报错了,还是不行呀

你不是url返回这个数据吗?
还是ajax获取到这些数据,你要静态赋值
作者: 春花之石    时间: 2014-10-29 15:37:49

dforce 发表于 2014-10-29 15:34
你不是url返回这个数据吗?
还是ajax获取到这些数据,你要静态赋值

打算是在标签里面的url这几个给数据个路径呢!但是不行,ajax怎么实现?我是菜鸟请大神指教
作者: dforce    时间: 2014-10-29 15:42:01

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

[attach]5369[/attach]
如图


作者: 春花之石    时间: 2014-10-29 16:07:22

dforce 发表于 2014-10-29 15:42
如图

好了,谢谢你了!么么哒




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