我嘗試了使用Column options里footerFormatter這個(gè)屬性,然而
columns: [{
field: 'classNo',
title: '編號(hào)'
}, {
field: 'phoneNo',
title: '電話'
}, {
field: 'createTime',
title: '時(shí)間'
},{
footerFormatter:
fuction(data){
cosole.log(data);
return 'xxx';
}
}]
得到的是一列 “-” 的數(shù)據(jù),那么問題來了。。。。
1.能否解釋一下footerFormatter是干嘛用的怎么使用;
2.怎么實(shí)現(xiàn)表格統(tǒng)計(jì)功能,需要合計(jì)一列數(shù)據(jù)的和;
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/
http://jsfiddle.net/L6tm1tt3/
showFooter:true 表格設(shè)置里這一個(gè)選項(xiàng)還需要設(shè)置一下,難怪一直沒效果。。。。
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://www.miracleart.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)