回答編集履歴

1

ちょうせい

2021/09/30 02:32

投稿

yambejp
yambejp

スコア116722

test CHANGED
@@ -14,11 +14,15 @@
14
14
 
15
15
  console.log(html);
16
16
 
17
- console.log(/.png$/mi.test(html));
17
+ $('.a2,.a3').toggle(!/.png$/mi.test(html));
18
18
 
19
19
  });
20
20
 
21
21
  </script>
22
+
23
+
24
+
25
+
22
26
 
23
27
  <a class="a1" href="hoge.jpg">1</a>
24
28
 
@@ -26,4 +30,14 @@
26
30
 
27
31
  <a class="a1" href="piyo.gif">3</a>
28
32
 
33
+ <div class="a2">a2-1</div>
34
+
35
+ <div class="a2">a2-2</div>
36
+
37
+ <div class="a3">a3</div>
38
+
39
+ <div class="a4">a4</div>
40
+
41
+
42
+
29
43
  ```