我尝试了使用Column options里footerFormatter这个属性,然而
columns: [{
field: 'classNo',
title: '编号'
}, {
field: 'phoneNo',
title: '电话'
}, {
field: 'createTime',
title: '时间'
},{
footerFormatter:
fuction(data){
cosole.log(data);
return 'xxx';
}
}]
得到的是一列 “-” 的数据,那么问题来了。。。。
1.能否解释一下footerFormatter是干嘛用的怎么使用;
2.怎么实现表格统计功能,需要合计一列数据的和;
http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/
http://jsfiddle.net/L6tm1tt3/
showFooter:true 表格设置里这一个选项还需要设置一下,难怪一直没效果。。。。