When building web pages or apps, you will often encounter the two terms async and await in JavaScript. These are terms frequently used in processes that fetch data from an API.In short, async/await is ...
Fetch APIはブラウザのJavaScriptを利用してネットワーク越しにデータを取得するための新しい機能です。同様の技術には、XMLHttpRequestがありますが、Fetch APIを使う事で、より柔軟で強力な操作が可能になります。 なお、新しいAPIと言ったのには理由があります。
Things are only a little more complicated when you want to do something more than just a get. You can specify a second parameter, the init object, in the call to control the type of request made. body ...