我正在尝试将AngularJSpromise/then与递归函数一起使用。但是then-function没有被调用(错误、成功、通知回调都没有被调用)。这是我的代码:递归函数loadSection2=function(){varapiURL="http://..."vardeferred=$q.defer();$http({method:"GET",url:apiURL}).success(function(result,status,headers,config){console.log(result);loadCount++;if(loadCount然后loadSection2()