File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
docs/4-advanced/01-fetch-api Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import chatAppVideo from "./chat-app.mp4";
88
99これまで、ブラウザが<Term >サーバー</Term >に対して<Term >リクエスト</Term >を送信するのは、リンクがクリックされたときや、フォームが送信されたときなど、ページの再読み込みが起こる場合のみでした。
1010
11- しかしながら、 ブラウザ上で動くJavaScriptから利用できる** Fetch API** を用いると、任意のタイミングで<Term >リクエスト</Term >が発行できるようになります。< Term >API</ Term >は、アプリケーションプログラミングインターフェース (Application Programming Interface) の略で、あるソフトウェアの機能や管理するデータを、外部の他のソフトウェアで利用するための手順やデータ形式を定めた規約のことです。多くのソフトウェアが共通して利用する機能がまとめて提供されており、< Term >API</ Term >に従い短いコードを記述するだけでその機能を利用することができます 。
11+ ブラウザ上で動くJavaScriptから利用できる** Fetch API** を用いると、任意のタイミングで<Term >リクエスト</Term >が発行できるようになります。
1212
1313{ /* prettier-ignore */ }
1414<Term >サーバー</Term >と<Term >クライアント</Term >、どちらで動くJavaScriptなのかに注意しながら、次のプログラムを実行してみましょう。
Original file line number Diff line number Diff line change @@ -411,12 +411,6 @@ export default {
411411 "処理を実行する際、その完了を待たずに呼び出し元の処理が続行されるような処理。JavaScriptでは、asyncキーワードをつけた関数は非同期処理を行うための関数となり、内部ではawaitキーワードにより他の非同期処理を呼び出してその結果を待機できるようになる。" ,
412412 referencePage : "/docs/web-servers/database/" ,
413413 } ,
414- api : {
415- name : "API" ,
416- definition :
417- "あるコンピュータープログラムの機能や管理するデータなどを、外部の他のプログラムから呼び出して利用するための手順やデータ形式などを定めた規約。アプリケーションプログラミングインターフェース (Application Programming Interface) の略。" ,
418- referencePage : "/docs/advanced/fetch-api/" ,
419- } ,
420414 thread : {
421415 name : "スレッド" ,
422416 definition :
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ const typeMap = new Map([
9797 [ "npxコマンド" , "npxCommand" ] ,
9898 [ "非同期処理" , "asynchronousProcess" ] ,
9999 [ "非同期関数" , "asynchronousProcess" ] ,
100- [ "API" , "api" ] ,
101100 [ "スレッド" , "thread" ] , // not found
102101 [ "トランスパイル" , "transpile" ] ,
103102 [ "トランスパイラ" , "transpile" ] ,
You can’t perform that action at this time.
0 commit comments