本文从各种角度对几个常用的 JavaScript 表格库进行比较,一目了然。
Feature
| DataTables
| JqGrid
| Slickgrid
| dhtmlxGrid
| Flexigrid
| ExtJs
|
License | GPL v2 license or a BSD (3-point) license | LGPL | MIT | Grid License $449 | MIT | License from $600 |
Show/Hide columns | yes | No/no | No/no | Yes/yes | Yes/yes | Yes/yes |
Resize/Reorder columns | yes/yes | Yes/yes | Yes/yes | Yes/yes | Yes/yes | Yes/yes |
Client side sorting | yes | yes | yes | yes | no | yes |
Support JSO as data sourc | yes | yes | yes | yes | yes | yes |
Export data to Excel/CSV | yes | yes | no | Excel and PDF | no | No, but see forum on this topic |
Endless scroll | yes | no | yes | yes | no | yes |
Filter by columns | yes | yes | Not very useful but exists in different area, not in header | yes | no | yes |
Search(all columns simultaneously). | yes | yes | yes(server) | no | yes | no |
Aggregation footer | no | no | no | yes | no | no |
Additional information | Has a lot extensions and plug-ins | Looks nice | Handles hundreds of thousands of rows with good speed | Easy java integration www.dhtmlx.com/ blog/?tag=java | |