移动元素时添加事件(jQueryui 可排序)

Add event when an element is moved (jQueryui sortable)

我有几个 div 可以通过拖放来排序(与 http://jqueryui.com/sortable/ 中的示例完全相同)。 我想在每次 div 中的一个被删除时添加一个事件,知道我怎样才能做到这一点吗?

使用.stop()

$("#sortable").sortable({
    cancel: ".fixed",
    stop: function( event, ui ){
        alert('change');
    }
});

这是一个demo