你的位置:首页 > 软件开发 > Java > easyui的datagrid显示的数据格式

easyui的datagrid显示的数据格式

发布时间:2016-08-12 12:02:16
easyui前台显示数据可以使用JSONObject,也可以使用JSONArray。但是如果是datagrid表格中的数据显示,只能使用JSONObject,这是easyui的规范。后台会将查询出的List使用JSONArray.fromObject()方法将List转换成JSO ...

easyui前台显示数据可以使用JSONObject,也可以使用JSONArray。

但是如果是datagrid表格中的数据显示,只能使用JSONObject,这是easyui的规范。

后台会将查询出的List使用JSONArray.fromObject()方法将List转换成JSONArray,但如果是在datagrid的表格中显示,则需要将JSONArray  put到JSONobject中;如果不用在datagrid表格中显示,那么JSONObject和JSONArray都可以传递给前台值。


原标题:easyui的datagrid显示的数据格式

关键词:DataGrid

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。