关于DataGrid处理后端返回的固定格式数据
由于easyui的datagrid处理列表中的数据是固定格式
{total: 12, rows: Array[5]}
total是总条数,rows是要展示的数据,我这里是要展示5条,然后我后端返回的固定格式是这样的
{
code: 30000,
msg: successs,
data: [{id: xxx, name: xxx, ...}, {...}]
}
这datagrid肯定...
原创
2019-08-03 09:41:07 ·
917 阅读 ·
0 评论