jQuery Sortable没有jQuery UI [英] jQuery Sortable without jQuery UI

查看:154
本文介绍了jQuery Sortable没有jQuery UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要可排序的拖放功能,我使用的是jQuery。我不能真正使用jQuery UI,因为这个项目会是一个开销(我需要添加许多KB的JS和CSS才能使用一小部分功能)。

I am in need of "Sortable Drag & Drop" functionality and I'm using jQuery. I can't really use jQuery UI, because for this project it would be an overhead (I'd need to add many KB of JS and CSS only to use small part of functionality).

有没有任何可以推荐的插件,也可以是一个简单的实现路径,我可以遵循?

Is there any plugin that you could recommend or maybe a simple implementation path, that I can follow?

解决方案必须与轻量级可能的,最好是基于jQuery / Sizzle或纯JavaScript。

推荐答案

您可以在jqueryui上构建您自己的JQuery下载.com没有所有的css /主题信息。您也可以剥离小部件和效果,只需使用draggable / droppable。

You can build your own JQuery download on jqueryui.com without all the css/theme information. You can also strip out the widgets and effects and just use draggable/droppable.

大约有30KB。仍然太大?

Comes to about 30KB all in. Still too large?

这篇关于jQuery Sortable没有jQuery UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆