简体   繁体   English

没有jQuery UI的可排序/可拖动列表项(或者根本不是jQuery?)

[英]Sortable/draggable list items without jQuery UI (or jQuery at all?)

I've been looking for a Javascript plugin that would provide the same basic functionnality as jQuery UI Sortable . 我一直在寻找一个Javascript插件,它提供与jQuery UI Sortable相同的基本功能。 Wich is dragging and dropping items for reordering them. 它是拖放项目以重新排序它们。 In my case those items are <li> tags. 在我的情况下,这些项目是<li>标签。

Basically, I don't want to use jQuery UI because it's quite heavy and, as I don't need to support IE, I'm using Zepto instead of jQuery. 基本上,我不想使用jQuery UI,因为它非常繁重,因为我不需要支持IE,我使用的是Zepto而不是jQuery。 So I don't want to load jQuery AND jQuery UI just for this. 所以我不想为此加载jQuery和jQuery UI。 That being said, I could easily live with a working jQuery plugin and adapt it so it works with Zepto. 话虽这么说,我可以很容易地使用一个有效的jQuery插件并进行调整,以便与Zepto一起使用。

I've been looking for this for quite some time but can't seem to find anything. 我一直在寻找这个,但似乎找不到任何东西。

Whilst this doesn't have the full functionaility as jQuery UI Sortable you might be able to use this Zepto - Drag and Drop plugin. 虽然这不具备jQuery UI Sortable的全部功能,但您可以使用此Zepto - 拖放插件。

https://github.com/netotaku/zepto-drag-and-drop.js https://github.com/netotaku/zepto-drag-and-drop.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM