同じ関数の減速を2回だけで、名前を変える代わりに、一度に複数の変数を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 ) {
}