由网友(捻碎寂寞的年)分享简介:有用于从JavaScript发出请求一个新的API:取()。是否有任何内置的机制,在飞行中取消这些要求?There is a new API for making requests from JavaScript: fetch(). Is there any built in mechanism for cancel...
有用于从JavaScript发出请求一个新的API:取()。是否有任何内置的机制,在飞行中取消这些要求?
There is a new API for making requests from JavaScript: fetch(). Is there any built in mechanism for canceling these requests in-flight?
推荐答案
我不相信有一种方法来取消现有获取API的请求。有一个在 https://github.com/whatwg/fetch/issues/27
I don't believe there is a way to cancel a request with the existing fetch API. There is ongoing discussion about it at https://github.com/whatwg/fetch/issues/27
相关推荐
最新文章