This article mainly introduces the usage of the jQuery table plug-in datatables, including paging and sorting functions. It is a basic part of the jQuery table plug-in datatables, for more information, see DataTables, which is a jQuery table plug-in. This is a highly flexible tool based on a step-by-step enhancement that will add advanced interactive control and support for any HTML table.
Official website and its: http:/www.datatables.net
The latest version is 1.10.2. You can download it from this site.
Its main features are as follows:
1. Automatic Paging
2. Real-time table data filtering
3. Data Sorting and automatic data type detection
4. automatically process column width
5. You can customize styles through CSS.
6. columns can be hidden.
7. ease of use
8. scalability and flexibility
9. Internationalization
10. dynamically create a table
11. Free
Usage:
First, take a look at the following code: