質問編集履歴
1
文追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,15 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
よろしくお願いします
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
説明が下手だったかもしれないので追記します
|
38
|
+
|
39
|
+
querySelectorメソッドはwindowオブジェクトの中のdocumentプロパティの中のdocumentオブジェクトの中にあるのでコードに書く時、
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
document.document.querySelector('') 最初のwindowは省略できるのでこうなると思いました
|
44
|
+
|
45
|
+
でも正解はdocument.querySelector('')なので何故メソッド側のdocumentがないのかわかりません
|