4
未在Chrome中触发Drop事件
似乎在我期望的时间没有触发drop事件。 我假设当被拖动的元素在目标元素上方释放时,将触发drop事件,但事实并非如此。 我有什么误会? http://jsfiddle.net/LntTL/ $('.drop').on('drop dragdrop',function(){ alert('dropped'); }); $('.drop').on('dragenter',function(){ $(this).html('drop now').css('background','blue'); }) $('.drop').on('dragleave',function(){ $(this).html('drop here').css('background','red'); })