问题描述
这是我的代码,我正在使用jQuery ui,ui.draggable.position({of:$ {this),my:'right top',at:'right top'});当我取消注释此行之后的无代码行时,此行不起作用。
$(function() {
$( ".coursesempty" ).droppable({drop: handleCardDrop});
});
function handleCardDrop( event,ui ) {
// ui.draggable.position( { of: $(this),my: 'right top',at: 'right top' } );
ui.draggable.draggable( {revert:false});
ui.draggable.draggable('disable');
$(this).droppable({disabled:true});
// ui.draggable.addClass('zindex_dragble');
ui.draggable.css({'opacity':'1'});
var drpbl=$(this);
ui.draggable.dblclick(function(){
drpbl.droppable( {disabled : false} );
// ui.draggable.removeClass('zindex_dragble');
ui.draggable.animate({ top: '0px',left: '0px'},500);
ui.draggable.draggable( {revert:true});
ui.draggable.draggable('enable');
});
} //new change anvin end
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)