- 首先在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 合计行
猜你喜欢
转载自blog.csdn.net/qq_43550109/article/details/89455114
今日推荐
周排行