使用Promise.race和delay取消XHR请求. 在本小节中,作为在第2章所学的Promise.race 的具体例子,我们来看一下如何使用Promise.race来实现超时机制。
確定! 回上一頁