回答編集履歴

1

ちょうせい

2021/06/03 12:29

投稿

yambejp
yambejp

スコア114883

test CHANGED
@@ -9,3 +9,19 @@
9
9
  if(document.images.length > 3) {
10
10
 
11
11
  ````
12
+
13
+ もしくは
14
+
15
+ ```
16
+
17
+ if(document.querySelectorAll('img').length>3){
18
+
19
+ while(img=document.querySelector('img')) {
20
+
21
+ img.remove();
22
+
23
+ }
24
+
25
+ }
26
+
27
+ ```