bootstrap-table页码ALL显示为NAN

在github上查阅找到的解决办法:

https://github.com/wenzhixin/bootstrap-table/issues/435

页面部分:

data-page-list="[10, 25, 50, 100, ALL]"

在引用的全球化语言文件里 bootstrap-table-zh-CN.js 加如下方法即可:

 formatAllRows: function () {
            return 'ALL'; // or return your translated word "全部"
        }

 

posted @ 2018-11-21 14:05  kanek  阅读(1376)  评论(0编辑  收藏  举报