Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我们的 Intranet 上有一个带有表格的网页,
我有大约 10k 条记录,是否有一种快速简单的方法可以将整个表颠倒过来(例如,在它变为 1 、 2 、 3 的那一刻)如何将其更改为 10000、9999、9998?
根据您可以使用的内容,您可以通过以下两种方式之一进行操作:server-side或client-side。
服务器端当然取决于您可以使用哪些技术(例如 PHP),并且这种解决方案将简单地反转生成表的任何函数/循环的开始和结束索引。
或者,您可以在客户端解决方案中使用 Javascript / jQuery。在您的情况下,像这样的插件可能是您最好的选择:
http://tablesorter.com/docs/
祝你好运!