如何取消 HTTP fetch() 请求? - How do I cancel an HTTP fetch() request?

问题:

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?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章