Change the number of displayed rows in jQuery datatable

后端 未结 4 656
南旧
南旧 2021-01-05 05:11

Why the number of rows in jquery datatable (see the code below) is not set to 5? It is equal to 10 8as by default). Why \'iDisplayLength\': 5 does

4条回答
  •  忘掉有多难
    2021-01-05 05:48

    You can try

    $('#example').dataTable( {
            "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
        } );
    

提交回复
热议问题