阅读背景:

在角形物体中推动新元素

来源:互联网 

Hy, so I have this code :

Hy,所以我有这个代码:

  angular.forEach(parentsId, function(parentId, key) {
    $scope.getContentByParent("Courses",parentId,function(data){

      $scope.Courses.push(data);

    });
  });

  $scope.getContentByParent = function(table,parentId,callback) {

  var data = new FormData();
  data.append('table', table);
  data.append('parentId', parentId);

  $http.post('../server/Model/content/get_content_by_parent.php', data, {
    transformRequest: angular.identity,
    headers: {'Content-Type': undefined}
  })
   .then(function (data) {
     data = data.data;
     callback(data);
    });
   };
  a



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: