max factory

gc-http-factory 是一个 AngularJS 的扩展,提供更便利的 API 写法,例如常规我们定义一个 Service 的方法如下: angular.app('app', []).factory('UsersService', function($http) { function findOne(id) { return $http.get('/api/users/' + id); }; function findAll() { return $http.get('/api/users'); }; function create() { return $http.post('/api/users'); }; return { findOne: findOne, findAll: findAll, crea...

加载中
加载中

{{o.href}}

{{o.content | formatHtml}}

{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}

暂无相关内容

返回顶部
顶部