- 首先在bootstrap table的init方法中添加属性
showFooter:true
- 其次在需要合计字段下方加入footerFormatter方法
eg: footerFormatter: function(){ //统计总分数 var count=0; $.each(data.rows, function(index,item) { count+=item.score; }); return count; }
bootstrap table 合计行
最新推荐文章于 2023-12-15 14:46:29 发布