4

我已经像这样设置了可拖动的 snap 元素:

$('#id_num_'+id_num).draggable({snap:'.time_column', snapMode:'inner'})

如何设置我的可拖动元素以捕捉到两个不同的元素或类......就像这样:

$('#id_num_'+id_num).draggable({snap:'.time_column', '.**other class**', snapMode:'inner'})
4

1 回答 1

11

How about

$('#id_num_'+id_num).draggable({snap:'.time_column,.other_class', snapMode:'inner'})
于 2013-04-27T23:16:54.437 回答