在.ajax成功时调用next函数

时间:2015-04-06 18:27:10

标签: jquery ajax

我必须在jQuery.ajax上调用另一个函数:success。

我试过了:

function getJoinLeaveBtn(id){
    $.ajax({
        url: ajaxurl+"?action=get_group_ids&bp_ajax=get_button",
        type: 'GET',
        success: function(data) {
            getMembers(id);
        },
        error: function(req, status, error){
            showMessage(3,req.statusText);
        }
        , timeout: 20000
    });
}

但是“getMembers”从未被称为成功。我做错了什么?

0 个答案:

没有答案
相关问题