java后台返回List,easyui分页怎么做,谢大神java后台像这样返回List,easyui分页怎么做
1、设置datagrid属性pagination为true
2、分页的返回数据格式应该像:
{"total":"2",
"rows":[{"id":"a","name":"b"},{"id":"a2","name":"b2"}]}
参考:
http://www.cnblogs.com/huozhicheng/archive/2011/09/27/2193605.html
Demo