質問編集履歴
6
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
JavaScriptでは、すべてのオブジェクトが「プロトタイプ」をベースにして作られている。
|
40
40
|
|
41
|
-
言い換えれば「プロトタイプ」と呼ばれる最小テンプレートがあり、それを
|
41
|
+
言い換えれば「プロトタイプ」と呼ばれる最小テンプレートがあり、それを参照して新しいオブジェクトを作るようなイメージである。
|
42
42
|
|
43
43
|
$.fnオブジェクトは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|
44
44
|
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,8 @@
|
|
42
42
|
|
43
43
|
$.fnオブジェクトは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|
44
44
|
|
45
|
+
ちなみに、$はjQueryの書き換えである。
|
46
|
+
|
45
47
|
|
46
48
|
|
47
49
|
https://www.sejuku.net/blog/47722
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
言い換えれば「プロトタイプ」と呼ばれる最小テンプレートがあり、それをコピーして新しいオブジェクトを作るようなイメージである。
|
42
42
|
|
43
|
-
$.fnは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|
43
|
+
$.fnオブジェクトは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|
44
44
|
|
45
45
|
|
46
46
|
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
$.fnオブジェクトとは、jQueryの基底クラスみたいなイメージで合っています
|
17
|
+
$.fnオブジェクトとは、jQueryの基底クラスみたいなイメージで合っていますか?
|
18
18
|
|
19
19
|
|
20
20
|
|
2
URL追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,7 @@
|
|
41
41
|
言い換えれば「プロトタイプ」と呼ばれる最小テンプレートがあり、それをコピーして新しいオブジェクトを作るようなイメージである。
|
42
42
|
|
43
43
|
$.fnは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
https://www.sejuku.net/blog/47722
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,4 +14,30 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
$.fnオブジェクトとは、jQueryの基底クラスみたいなイメージで合っています
|
17
|
+
$.fnオブジェクトとは、jQueryの基底クラスみたいなイメージで合っています。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
### メモ。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```jQuery
|
26
|
+
|
27
|
+
console.log(jQuery === $); //true;
|
28
|
+
|
29
|
+
console.log(jQuery.fn === $.fn); //true;
|
30
|
+
|
31
|
+
console.log(jQuery.prototype === jQuery.fn); //true;
|
32
|
+
|
33
|
+
console.log(jQuery.prototype === $.fn); //true;
|
34
|
+
|
35
|
+
console.log($.prototype === $.fn); //true;
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
JavaScriptでは、すべてのオブジェクトが「プロトタイプ」をベースにして作られている。
|
40
|
+
|
41
|
+
言い換えれば「プロトタイプ」と呼ばれる最小テンプレートがあり、それをコピーして新しいオブジェクトを作るようなイメージである。
|
42
|
+
|
43
|
+
$.fnは、$.prototype(jQuery.prototype)と等価であり、jQueryの最小テンプレートである。
|