简体   繁体   中英

The default change to DataTable

i'm using in library dataTables In the folder jquery.dataTables.min And there is the option to display 10 rows or 25 or 50 or 100 10 rows are the default How do I change the default to 50 rows? Below is just the code that shows the options:

    aLengthMenu: [10, 25, 50, 100],
    iDisplayLength: 10,

将其 iDisplayLength 更改为 50

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM