阅读背景:

无法从服务获取控制器中的数据

来源:互联网 

app.service('customersService', function ($http) {
    this.getCustomer = function (id) {
        $http({
            method: 'GET',
            url: '/getCustomer',
            params: {id: id},
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        }).success(function(data) {
            console.log(data);
            return data;
        })
    };
});app.service('customersService', fun



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

分享到: