且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在执行函数后重新加载http.get请求

更新时间:2022-01-12 04:51:32

试试这个

$scope.go = function(ref) {
  $http.get("api/phone_recev.php?id="+ref)
  .success(function (data) {
  //on success of first function it will call

    $http.get("api/phone_accept.php")
     .then(function (response) { 

    });
  });
}