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.
获取droppable中的所有元素
示例:如果我将十个元素拖动到可放置并删除三个,当单击按钮时,它会识别可放置内的元素。有人知道怎么做吗?我认为其他人面临这个问题。
谢谢大家。
您的问题可以措辞更好,您可以显示一些代码,以便我们可以更好地提供帮助。
在不知道您的设置如何的情况下,我猜想像
$('#dropped-container .draggable-items').each(function() { $(this).whateverYouWantToDo(); });
我有以下内容:
我已经通过列表实现了这一点。这需要大量的 CSS。我想添加标题(“操作系统”、“百分比”),这将需要更多的 CSS 技巧
使用表格可能更简单。
一般来说,首选方法是什么:表格还是 ul/list?