angular5以后的超时设置方式,采用pipe()的方式,具体请看代码: this.http.get('https://example.com') .pipe( timeout(2000), catchError(e => { // do ...
確定! 回上一頁