Angularjs同步操作http请求with $promise

// Define a factory app.factory('profilePromise', ['$q', 'AccountService', function($q, AccountService) { var deferred = $q.defer(); AccountService.getProfile().then(function(res) {
相关文章
相关标签/搜索