2016-12-30 81 views

回答

0

我想通了!

function getAuthenticatedUser(onSuccess, onError){ 

     Restangular.one('authenticated_user').get().then(function(response){ 

      onSuccess(response.user); 

     }, function(response){ 

      onError(response); 

     }); 

    } 
相關問題