jQuery拖放多个元素

2022-01-11 00:00:00 drag-and-drop jquery javascript

我目前正在使用 jquery 和 php 开发 Web 文件浏览器.我的一个子任务是能够选择几个文件/文件夹并将它们放到另一个文件夹中.

I'm currently developing a web file browser using jquery and php. One of my sub-tasks is to be able to select a couple of files/folders and drop them into another folder.

根据我的研究,我发现 jquery ui 具有可拖动和可放置的功能,可以完成 80% 的工作.
应该怎么做才能选择几个元素并删除它们?可以使用 jquery ui 中现有的可拖动/可放置插件来完成吗?如果不能,你能推荐任何可以完成工作的 jquery 插件吗?

From my research I see that jquery ui has draggable and droppable which do the work at 80%.
What should be done to be able to select a couple of elements and drop them? Can it be done with the existing draggable/droppable plugins from jquery ui? If not can you recommend any plugins for jquery that can do the work?

推荐答案

怎么样http://www.myphpetc.com/2009/11/jquery-ui-multiple-draggable-plugin.html

相关文章