bootstrap-table頁碼ALL顯示爲NAN

在github上查閱找到的解決辦法:git

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

頁面部分:bootstrap

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

在引用的全球化語言文件裏 bootstrap-table-zh-CN.js 加以下方法便可:spa

 formatAllRows: function () {
            return 'ALL'; // or return your translated word "所有"
        }
相關文章
相關標籤/搜索