问题:
There is a new API for making requests from JavaScript: fetch()
.有一个用于从 JavaScript 发出请求的新 API: fetch()
。 Is there any built in mechanism for canceling these requests in-flight?是否有任何内置机制可以取消这些正在进行的请求?
解决方案:
参考一: https://stackoom.com/question/26KbO参考二: How do I cancel an HTTP fetch() request?