如何用easyui+JAVA 实现动态拼凑datagrid表格
1个回答
展开全部
datagrid 的json数据有严格的格式,必须有total 和rows 例如:
{ "total":条数,
"rows":[ {"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"},
{"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"},
{"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"}
]
}
;datagrid有个参数是url,填写请求数据的地址,返回上面那种json格式的数据,easyui就会将内容填进去的了
{ "total":条数,
"rows":[ {"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"},
{"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"},
{"id01":"282.32","id02":"122221","id03":"0329281","id04":"29292918"}
]
}
;datagrid有个参数是url,填写请求数据的地址,返回上面那种json格式的数据,easyui就会将内容填进去的了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询