我正在尝试通过从库存和盔甲中拖放武器来构建游戏,jquery drop 事件可以正常工作
$('#gs_weapon,#gs_inv').droppable({
drop: function(ev,ui)
{
itemInSpot(ui.draggable,this,"weaponc.php","Damage : ","#gs_da");
}
});
但是当我添加头盔掉落事件时,它停止为#gs_inv 工作,只是为什么
$('#gs_helmet,#gs_inv').droppable({
drop: function(ev,ui)
{
itemInSpot(ui.draggable,this,"helmetc.php","Armor : ","#gs_ar");
}
});
droppable 工作正常,但 drop 事件没有