Fetch API - Web APIs | MDN
6
公开标注数
6
参与人数
2026-07-20 09:45:49
首次 Whisper
本页的公开 Whisper
划选高亮2026-07-20 16:09:49
原文高亮摘录
“The fetchLater() API enables a developer to request a deferred fetch, that can be sent after a specified period of time, or when the page…”
Whisper 随想笔记
So this is basically a fire-and-forget ping when they leave the page, cool.
划选高亮2026-07-20 13:06:49
原文高亮摘录
“The fetch() method takes one mandatory argument, the path to the resource you want to fetch.”
Whisper 随想笔记
Wait does that mean a 404 still counts as a resolved promise? That's wild.
划选高亮2026-07-20 12:57:49
原文高亮摘录
“The fetch() method takes one mandatory argument, the path to the resource you want to fetch.”
Whisper 随想笔记
So it really only needs the URL, huh? I always thought I had to pass more stuff.
划选高亮2026-07-20 10:03:49
原文高亮摘录
“The Fetch API provides an interface for fetching resources (including across the network).”
Whisper 随想笔记
does this mean I can stop using axios now?
划选高亮2026-07-20 09:54:49
原文高亮摘录
“The Fetch API provides an interface for fetching resources (including across the network).”
Whisper 随想笔记
still miss the old xhr sometimes, but ok
划选高亮2026-07-20 09:45:49
原文高亮摘录
“The Fetch API provides an interface for fetching resources (including across the network).”
Whisper 随想笔记
finally something that doesn't feel like 2005
分享本页 Whisper
短链接
https://domwhisper.com/s/036cd5a07f83嵌入代码
<iframe src="https://domwhisper.com/embed/036cd5a07f83" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>