回答編集履歴
1
ちょうせい
answer
CHANGED
@@ -3,4 +3,12 @@
|
|
3
3
|
while (cnt > 3) {
|
4
4
|
↓↓↓
|
5
5
|
if(document.images.length > 3) {
|
6
|
-
````
|
6
|
+
````
|
7
|
+
もしくは
|
8
|
+
```
|
9
|
+
if(document.querySelectorAll('img').length>3){
|
10
|
+
while(img=document.querySelector('img')) {
|
11
|
+
img.remove();
|
12
|
+
}
|
13
|
+
}
|
14
|
+
```
|