我必须在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”从未被称为成功。我做错了什么?