Writer:
|
| ||||
I wrote a function to perform sorting of the table locally instead of
making a trip to the server each time. It uses the ".sorted" class to
determine which column needs sorting, thus only the table selector is
passed along with the sort order. At this stage it supports alphabetic
and (slightly crude) numeric sorting. I hope this helps someone.
Suggestions welcome.
Here is the function:
Use it via:
本文介绍了一个用于本地进行表格排序的JavaScript函数,该函数通过避免每次排序都向服务器发送请求来提高效率,支持字母和基本的数字排序。

被折叠的 条评论
为什么被折叠?



