轻量级替代jQuery UI的sortable()? [英] Lightweight Alternative to jQuery UI's sortable()?
问题描述
jQuery UI(1.8+)正在成为一个伟大的图书馆,但我发现它对我来说经常做得太多。是否有替代库用于创建占用空间较小的可排序列表?
排除占位符和交叉列表排序等功能是可以接受的。
jQuery UI (1.8+) is shaping up to be a great library, but I find that it often does too much for me. Is there an alternative library for creating a sortable list that has a smaller footprint?
Excluding functionality like placeholders and cross list sort is acceptable.
编辑:
(这已成为一个有趣的讨论,感谢所有的回复。)
似乎有些用户不知道jQuery UI可以排序。这是不表排序,但列表排列。想想重新订购Netflix队列。请参阅此处的演示: http://jqueryui.com/demos/sortable/
(This has become an interesting discussion, thanks for all the replies.)
It seems a few users are unaware what jQuery UI sortable is. It's not table sorting, but list arrangement. Think re-ordering your Netflix queue. See the demo here: http://jqueryui.com/demos/sortable/
推荐答案
我发现的最小和最简单的代码是 HTML5 Sortable 。它是一个很小的JQuery插件,适用于各种浏览器,大小只有1.5 KB。
The smallest and simplest code I found was HTML5 Sortable. It's a tiny JQuery plugin that works across a wide range of browsers, and is only 1.5 KB in size.
这篇关于轻量级替代jQuery UI的sortable()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!