http拦截器interceptors

在服务里配置$httpProvider.interceptors的相关参数
包含
request请求拦截
response响应拦截
requestError请求错误抛出
responseError响应错误抛出
应用场景
需要向服务器发送特定的头的时候
需要修改post方法的时候
posted @ 2016-09-25 19:50  moux  阅读(1723)  评论(0)    收藏  举报