根据
http://docs.angularjs.org/api/ng.$http,拦截器有以下方法:
request: function(config) { //we could manipulate query here return config || $q.when(config); },requestError: function(rejection) { // what is the use case of this? return $q.reject(rejection); },response: function(response) { // response.status === 200 return response || $q.when(response); },responseError: function(rejection) { // when response Failed ... return $q.reject(rejection); }
requestError是如何触发的,你能想到什么用例?