http拦截器interceptors

在服务里配置$httpProvider.interceptors的相关参数
包含
request请求拦截
response响应拦截
requestError请求错误抛出
responseError响应错误抛出
应用场景
需要向服务器发送特定的头的时候
需要修改post方法的时候
我的github: https://github.com/moux1024
原文地址:https://www.cnblogs.com/xd1024/p/5906675.html