解决angularjs中同步执行http请求的方法 如下所示:self.tableParams=newNgTableParams({},{getData:function(params){$http.post("rest/staff/page",$scope.req).s 同步执行