那是我用于白名单的食谱
app.run(function ($httpBackend) { // mocked requests, should come first $httpBackend.when('GET', 'mock').respond(200, {}); // whitelisted real requests, should come last angular.forEach(['GET', 'DELETE', 'JSONP', 'HEAD', 'PUT', 'POST', 'PATCH'], function (method) { $httpBackend.when(method).passThrough(); });});我非常确定优先级在这里很重要。



