我知道fetch正在使用promises,它们都允许你向服务器发出AJAX请求.我已经读过fetch有一些额外的功能,这些功能在XMLHttpRequest(以及fetch polyfill中,因为它基于XHR)中不可用.fetch API有哪些额外功能?
javascript ajax xmlhttprequest fetch-api
ajax ×1
fetch-api ×1
javascript ×1
xmlhttprequest ×1