1
我明白如何获得订单,但我不知道如何在必要时将元素放回到之前的位置。可排序如何将元素放回到之前的位置?
请指教,非常感谢。
el.sortable({
start: function(){ var order = etc //Got current order here// },
update: function(){
//Process and etc//
if(cancel) {
//how can I put the element back to the position before??
}
},
});
非常感谢你,这是它! – Till
el.sortable(“cancel”);甚至在里面工作 – Till