回答編集履歴
1
調整
answer
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
```javascript
|
|
4
4
|
window.addEventListener('DOMContentLoaded', function(e){
|
|
5
|
-
if(
|
|
5
|
+
if(document.querySelector('#hoge #a')){console.log("a!");}
|
|
6
|
-
if(
|
|
6
|
+
if(document.querySelector('#hoge #b')){console.log("b!");}
|
|
7
7
|
});
|
|
8
8
|
```
|
|
9
9
|
```HTML
|