Change values of select box of “show 10 entries” of jquery datatable

后端 未结 9 1403
攒了一身酷
攒了一身酷 2021-01-30 12:24

By default, jquery datatable shows 10 by default and has

options : 10,25,50,100

How can I change these options?

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 13:09

    If you want to use 'lengthMenu' together with buttons(copy, export), you have to use this option dom: 'lBfrtip'. Here https://datatables.net/reference/option/dom you can find meaning of each symbol. For example, if you will use like this 'Bfrtip', lengthMenu will not appears.

提交回复
热议问题