特别说明
使用Bootstrap-table分页和汇总统计!
- 我是自己模拟的JSON数据,用data接收,如果是从后台url接口拿的的数据请用url接受
- 设置bootstrapTable的js中 showFooter:true,这样才能显示表格底部汇总栏
- 在columns加入: footerFormatter 属性即可
JSON数据格式
{
"total": 11,
"rows": [{
"id": 1,
"name": "guoliuwei",
"score": 95
},
{
"id": 2,
"name": "glw",
"score": 90
},
{
"id": 3,
"name": "果粒橙",
"score": 85
},
{
"id": 4,
"name": "glv",
"score": 67
},
{
"id": 5,
"name": "郭留伟",
"score": 100
},
{
"id": 2,
"name": "glw",
"score": 90
},
{
"id": 3,
"name": "果粒橙",
"score": 85
},
{
"id": 4,
"name&#