I’m using DataTables
and I’m trying to change the default text Showing 1 to 10 of 57 entries
to something like Total 57
and when there is no data No Data found
。我更改了 info
属性,但它似乎没有任何影响。
$(document).ready(function() {
$('#example').DataTable( {
"language": {
"lengthMenu": "Display _MENU_ records per page",
"zeroRecords": "No Data Found",
"info": "Total",
"infoEmpty": "No records available",
"infoFiltered": "(filtered from _MAX_ total records)"
}
});
});
关于如何实现这一目标的任何想法?谢谢。
原文由 user8207635 发布,翻译遵循 CC BY-SA 4.0 许可协议
查看 此 文档:将
"info"
"Showing from _START_ till _END_ from the total of _TOTAL_ records"
类的内容。注意_START_
_END_
和_TOTAL_
关键字。