大蜕

AngularJs的http请求要点和div的操作

transFn = function(data) {
    return $.param(data);
};

postCfg = {
    headers : {'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8'},
  	transformRequest: transFn
};
$http.post(url, param, postCfg).success(function(response, status){
    $scope.result = response;
});
.error(function(){
})
.finally(function(){
};
var index = $scope.myConfigList.indexOf(mine);
    if (index !== -1) {
        $scope.myConfigList.splice(index, 1);
    }

添加,push方法即可

$scope.systemConfigList.push(mine);
angular.forEach(objToIterator, function(value, key){});
var divId = obj.widgetRender.substr(1, obj.widgetRender.length);
$scope.div = obj.divContent;
$scope.div = angular.element($scope.div).attr('id', divId);
angular.element(document.getElementById('dashboardDiv')).append($scope.div);