Droppable
通过标签创建一个可放置的元素。需要给标签添加一个class类,值为easyui-droppable。
<div id="dd" class="easyui-droppable" data-options="accept:'#d1,#d3'" style="width:100px;height:100px;"></div>
也可以通过javascript创建。
<div id="dd" style="width:100px;height:100px;"></div>
$('#dd').droppable({
accept:'#d1,#d3' //可以接受d1、d3
});
droppable的accept属性表示确定哪些可拖拽元素将被接受。另外它还有一些事件,请看我们右面环境中的实例。