jquery 如何更改DataTable分页文本?

btxsgosb  于 2023-06-05  发布在  jQuery
关注(0)|答案(1)|浏览(160)

我想将分页文本上一页更改为上一页
这怎么可能?

<table class=" table table-bordered table-striped table-hover datatable datatable-Permission">
    --------
</table>

jQuery代码:

$('.datatable-Permission:not(.ajaxTable)').DataTable({ 
      buttons: dtButtons,
      language: {
        paginate: {
            previous: 'Prev',
            next:     'Next'
        },
        aria: {
            paginate: {
                previous: 'Previous',
                next:     'Next'
            }
        }
    }
})

不行!!!!

kyks70gy

kyks70gy1#

我使用的是DataTables 1.10.13。对我来说,打击配置工作:

$('#example').dataTable({
            "oLanguage": {
                "oPaginate": {
                    "sFirst": "First page", // This is the link to the first page
                    "sPrevious": "Previous page", // This is the link to the previous page
                    "sNext": "Next page", // This is the link to the next page
                    "sLast": "Last page" // This is the link to the last page
                }

相关问题