我使用 jqxTree 来查看我的树。我想拖动一些元素并放在 Droppable 区域上。
$(".dragItem").draggable({
revert: "true",
revertDuration: 0,
helper: 'clone',
cancel : 'span',
refreshPositions: true,
containment: "parent"
});
$(".dragItem").css({"position": ""});
$("#log").droppable({
accept: ".dragItem",
drop: function(event){
alert("Dropped");
}
});
上面的代码在小提琴中给出。谁能说出为什么拖放不起作用 小提琴
任何想法或建议都会有所帮助。