$("#here").droppable({ tolerance: 'fit',accept: ".one",drop: function(){ id = $(this).attr("id"); alert (id); } });
它当然在这里提醒了droppable的id.如何选择丢弃的div的id?
function(event,ui){ var draggable = ui.draggable; var id = draggable.attr("id"); }
被删除的draggable由ui.draggable表示
在jquery ui docs中找到了droppable.