angular JS http发布数据

时间:2017-04-18 17:57:31

标签: angularjs post

我有6种形式,仅在以下形式之中就没有提交参数。

$scope.submit_s = function(isValid) {
    if (isValid) {
        console.log($scope.school_); //value is printing here
        $http.post(form_submit_url, $scope.school_).then(function(result) //here it is not sending params
            {
                var status = result.data.status.status;
                if (status == "success") {
                    // $window.sessionStorage.removeItem('jobData');
                }
            });
    }
};

0 个答案:

没有答案