angularjs怎么实现页面向后台传值

2025-03-12 17:08:18
推荐回答(1个)
回答1:

$scope.info = function () {
        $http({
            method: 'POST',
            url: 完整路径+'api/agent/modifyPassword',            
            data: JSON.stringify($scope.req)
        }).success(function(data){
        }).error( function(data){
        });
};