摘要: 1. 创建一个Service,去服务器读取数据://$q是内置服务,所以可以直接使用ngApp.factory('UserInfo',['$http','$q',function($http,$q){return{query:function(){vardeferred=$q.defer();//声... 阅读全文
posted @ 2015-02-14 14:14 向着太阳生 阅读(291) 评论(0) 推荐(0)