function release(e) {
if (!api.dragging) {
return;
}
var item = _copy || _item;
var clientX = getCoord('clientX', e);
var clientY = getCoord('clientY', e);
var elementBehindCursor = getElementBehindPoint(_mirror, clientX, clientY);
var dropTarget = findDropTarget(elementBehindCursor, clientX, clientY);
if (dropTarget && (o.copy === false || dropTarget !== _source)) {
if($(dropTarget).prop("id")=="subgroup4"){
cancel(true,1);
}};
想通过droptartget的id来判定,如果放弃,被拖动的部件还要退回到原来的位置,退回原位置的代码怎么实现
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
闭关修行中......