有什么方法可以一次将多个变量传递给 Jquery.droppable 函数,而不是两次使用相同的函数减速但名称不同?
或者这不能正常工作?
所以像
var $Monday = $( "#Monday" );
var $Tuesday = $( "#Tuesday" );
$Monday.droppable, $Tuesday.droppable({
accept: "#gallery > li",
activeClass: "ui-state-highlight",
drop: function( event, ui ) {
}
代替
$Monday.droppable({
accept: "#gallery > li",
activeClass: "ui-state-highlight",
drop: function( event, ui ) {
}
$Tuesday.droppable({
accept: "#gallery > li",
activeClass: "ui-state-highlight",
drop: function( event, ui ) {
}