更新时间:2023-10-30 20:44:40
首先,看看这个,并阅读@Erez 的答案.
For a beginning, have a look at this, and read @Erez answer, too.
$(function () {
$("#sortable1").sortable({
connectWith: ".connectedSortable",
remove: function (event, ui) {
ui.item.clone().appendTo('#sortable2');
$(this).sortable('cancel');
}
}).disableSelection();
$("#sortable2").sortable({
connectWith: ".connectedSortable"
}).disableSelection();
});