0
我试图检测元素被拖动的时间。 jQuery文档指出添加.bind('drag'
应该这样做。不幸的是,这不适用于我的情况。我已验证我的项目是可拖动的(由jQueryUI初始化)。jQueryUI检测元素被拖动时
//all of these elements show a "drag" listener, yet nothing happens
console.log($('#roster .sponsors li, #roster .players li'));
$('#roster .sponsors li, #roster .players li').bind('drag', function() {
$('.team div.sponsors, .team div.players').remove();
$(this).unbind('drag');
});
我想“这里拖赞助商”得到了div标签时,他们开始拖着走开.... http://jsfiddle.net/gEuZz/2/
更新
检查出这个问题 - REMOVED -
看看我上面发布的链接...我有一个奇怪的问题,我无法弄清楚。 – Webnet