ajax为什么响应报文已返回 但是不进success回调函数

2025-05-22 04:02:37
推荐回答(2个)
回答1:

是不是失败了,所以没进success回调,你写一个error或者直接上complete试试

回答2:

pid = 1;$.ajax({url: 'index.php',type: 'GET',dataType: 'html',data: {m: 'siteadmin',s:'user',action:'selectchildgroup',pid:pid},success:function(res){alert(1);},error:function(){alert(2);}});试试看下