質問編集履歴

2

変数を入れ忘れていました。

2022/02/11 01:38

投稿

zun30
zun30

スコア3

test CHANGED
File without changes
test CHANGED
@@ -18,6 +18,7 @@
18
18
  ```
19
19
 
20
20
  ```jQuery
21
+ var activeurl = location.pathname.split('/')[1];
21
22
  $(document).ready(function() {
22
23
  $('nav li a').each(function(){
23
24
  var array = $(this).attr('href').replace('/' , '');

1

HTMLとcssの知識が必要なためタグを追加しました。

2022/02/11 00:47

投稿

zun30
zun30

スコア3

test CHANGED
File without changes
test CHANGED
File without changes