为什么这个功能不会运行?

时间:2014-07-28 07:30:09

标签: jquery

我只是在发布信息后尝试刷新页面,这确实成功。该功能不会打电话。

$('#qwerty').sortable({
    update: function (event, ui) {
        var newOrder = $(this).sortable('toArray').toString();
        $.post(document.URL + '/saveEdit', {
            order: newOrder
        }).done(function () {
            console.log('Y wont this call?');
            window.location.href = document.URL;
        });
    }
});

http://api.jquery.com/deferred.done/

0 个答案:

没有答案