DataTable 中文国际化

DataTable中文设置,详见代码

 1 var table = $('#example').DataTable({
 2     "language": {
 3         "processing": "处理中...",
 4         "lengthMenu": "显示 _MENU_ 项结果",
 5         "zeroRecords": "没有匹配结果",
 6         "info": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
 7         "infoEmpty": "显示第 0 至 0 项结果,共 0 项",
 8         "infoFiltered": "(由 _MAX_ 项结果过滤)",
 9         "infoPostFix": "",
10         "search": "搜索:",
11         "searchPlaceholder": "搜索...",
12         "url": "",
13         "emptyTable": "表中数据为空",
14         "loadingRecords": "载入中...",
15         "infoThousands": ",",
16         "paginate": {
17             "first": "首页",
18             "previous": "上页",
19             "next": "下页",
20             "last": "末页"
21         },
22         "aria": {
23             paginate: {
24                 first: '首页',
25                 previous: '上页',
26                 next: '下页',
27                 last: '末页'
28             },
29             "sortAscending": ": 以升序排列此列",
30             "sortDescending": ": 以降序排列此列"
31         },
32         "decimal": "-",
33         "thousands": "."
34     }
35 });

 

posted @ 2018-07-22 12:48  派对实验室  阅读(263)  评论(0编辑  收藏  举报