dataTables.bootstrap 如何顯示中文
阿新 • • 發佈:2018-07-03
post rds end empty col ext ESS process 處理
$(‘#table_cust‘).DataTable({
"oLanguage": {
"sUrl": "/assets/vendors/page_zh_CN.json"
},
page_zh_CN.json 內容如下:
{
"sProcessing": "處理中...",
"sLengthMenu": "_MENU_ 記錄/頁",
"sZeroRecords": "沒有匹配的記錄",
"sInfo": "顯示第 _START_ 至 _END_ 項記錄,共 _TOTAL_ 項",
"sInfoEmpty": "顯示第 0 至 0 項記錄,共 0 項","sInfoFiltered": "(由 _MAX_ 項記錄過濾)",
"sInfoPostFix": "",
"sSearch": "過濾:",
"sUrl": "",
"oPaginate": {
"sFirst": "首頁",
"sPrevious": "上頁",
"sNext": "下頁",
"sLast": "末頁"
}
}
dataTables.bootstrap 如何顯示中文