jQueryUI-可投放 [英] jQueryUI - droppable

查看:121
本文介绍了jQueryUI-可投放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  $( ".selector" ).droppable({
   drop: function(event, ui) { ...saving here }
});






我正在捕获drop事件,并且在函数中保存了drop panel状态,问题是当触发此事件时,仍然有一个注入的占位符元素,放置完成后就不会再出现了...

我找不到放下触发的事件!我错过了什么吗?有人有主意吗?

感谢您的时间






i am trapping the drop event and in the function i am saving the drop panel state, problem is when this event is fired there is still an injected placeholder element that wont be there after the drop is completed...

I cant find an event that fires on drop completed! have i missed something? anyone have an idea?

thanks for your time

推荐答案

(".selector").droppable({ 删除:function(event,ui){...保存在这里} });
( ".selector" ).droppable({ drop: function(event, ui) { ...saving here } });






我正在捕获drop事件,并且在函数中保存了drop panel状态,问题是当触发此事件时,仍然有一个注入的占位符元素,在放置完成后就不会再出现了.

我找不到放下触发的事件!我错过了什么吗?有人有主意吗?

谢谢您的时间






i am trapping the drop event and in the function i am saving the drop panel state, problem is when this event is fired there is still an injected placeholder element that wont be there after the drop is completed...

I cant find an event that fires on drop completed! have i missed something? anyone have an idea?

thanks for your time


这篇关于jQueryUI-可投放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆