我想使用把手来显示一些记录,但结果需要分组。
示例数据:
{"data":[
{ "sn":"lecture","areasn":"3"},
{ "sn":"lab","areasn":"1"},
{ "sn":"lecture","areasn":"2"},
{ "sn":"field","areasn":"3"},
{ "sn":"lab","areasn":"1"},
{ "sn":"exam","areasn":"2"}
]}
我希望显示器类似于:
field
3
exam
2
lab
1
1
lecture
2
3
基本上数据已经分组。
关于如何做到这一点的任何想法?感谢