【发布时间】:2018-08-22 20:10:45
【问题描述】:
我在 angularjs 4 官方页面 (https://angular.io/guide/http) 中看到设置 http 调用超时但我没有找到任何参考。 有人试过设置吗?
谢谢
【问题讨论】:
-
我要了 angular 4。谢谢
-
Angular 4 和 Angular 2 一样,依赖于 RxJS。您为什么不至少阅读并尝试答案?
-
var response = this.http.get(API.root + path, options).timeout(3000, new Error('timeout exceeded')).map((res : Response)=> this .checkResponse(res));我有这个错误:“Observable
”类型上不存在属性“超时”。