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 "全部"
        }

猜你喜欢

转载自www.cnblogs.com/kennyliu/p/9994686.html