圖1
圖2
問題如上圖1,2,原因是這兩個包的導入順序
<script src="../js/bootstrap-table/bootstrap-table.js"></script> <script src="../js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
交換:
<script src="../js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script> <script src="../js/bootstrap-table/bootstrap-table.js"></script>
雖然不亂碼了....但是變成英文了(圖3,4),因為bootstrap-table-zh-CN中文沒用上
圖3
圖4
將bootstrap-table-zh-CN.js單獨拷貝出來,重新utf-8生成一下,放在bootstrap-table.js一起,如圖5,6
<script src="../js/bootstrap-table/bootstrap-table.js"></script> <script src="../js/bootstrap-table/bootstrap-table-zh-CN.js"></script>
圖5
圖6