在以下用 Oracle Apex 5 编写的代码中,draggable 可以工作,但 droppable 无法识别。
$('.draggable').draggable({ revert: "invalid"});
$('.droppable').droppable({
accept: ".draggable",
drop: function(event, ui) {
var draggable = ui.draggable;
$(this).text() = draggable.text();
}
});