質問編集履歴

1

[2]→[index]に修正

2020/02/16 12:52

投稿

MTON
MTON

スコア13

test CHANGED
File without changes
test CHANGED
@@ -144,7 +144,7 @@
144
144
 
145
145
  tabContents[2].classList.remove("active");
146
146
 
147
- tabContents[2].classList.add("active");
147
+ tabContents[index].classList.add("active");
148
148
 
149
149
  }
150
150