📅  最后修改于: 2022-03-11 15:03:05.059000             🧑  作者: Mango
var canceler = $q.defer();
$http.get('/someUrl', {timeout: canceler.promise}).success(successCallback);
// later...
canceler.resolve(); // Aborts the $http request if it isn't finished.