假设我在angular.js应用程序中注册了几个HTTP拦截器:
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
console.log("interceptor A request");
return config;
},
response: function(res) {
console.log("interceptor A response");
return res;
}
};
});
$httpProvider.interceptors.push(...); // interceptor B with similar code
$httpProvider.interceptors.push(...); // interceptor C with similar code
它们将按照什么顺序执行?