File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/2-browser-apps/06-project Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ const li = document.createElement("li");
7070todoList .appendChild (li);
7171```
7272
73- また、` HTMLInputElement#value ` プロパティから入力欄への入力内容を取得できます 。
73+ また、` HTMLInputElement#value ` プロパティから、DOM に対応する input 要素の入力欄への入力内容を取得できます 。
7474
7575``` js
76- todoText .textContent = todoInput .value ; // span 要素の textContent を todoInput の value にする
76+ todoText .textContent = todoInput .value ; // todoInput の value を span 要素の textContent に代入する
7777todoInput .value = " " ; // todoInput の入力を空にする
7878```
7979
@@ -281,7 +281,7 @@ addButton.onclick = () => {
281281 editButton .textContent = " 編集" ;
282282 editButton .onclick = () => {
283283 const input = prompt (" 編集内容を入力してください" );
284- // prompt が空で入力された場合は空文字列 ("")、キャンセルした場合は null を返す
284+ // prompt が空で入力された場合は空文字列 ("")、キャンセルされた場合は null を返す
285285 if (input !== " " && input !== null ) todoText .textContent = input;
286286 };
287287 deleteButton .textContent = " 削除" ;
You can’t perform that action at this time.
0 commit comments