回答編集履歴
3
2018/05/23 -> 2016/05/23
test
CHANGED
@@ -66,7 +66,7 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
201
|
69
|
+
2016/05/23当時のドキュメントを読むと、引数省略時の挙動は書いていません。
|
70
70
|
|
71
71
|
|
72
72
|
|
2
引用ミスを修正
test
CHANGED
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
> function( i, name ) {
|
106
106
|
|
107
|
-
>
|
107
|
+
>
|
108
108
|
|
109
109
|
> // Handle event binding
|
110
110
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
|
151
151
|
> }
|
152
152
|
|
153
|
-
>
|
153
|
+
>
|
154
154
|
|
155
155
|
> var selector, type, response,
|
156
156
|
|
@@ -158,7 +158,7 @@
|
|
158
158
|
|
159
159
|
> off = url.indexOf( " " );
|
160
160
|
|
161
|
-
>
|
161
|
+
>
|
162
162
|
|
163
163
|
> if ( off > -1 ) {
|
164
164
|
|
@@ -168,13 +168,13 @@
|
|
168
168
|
|
169
169
|
> }
|
170
170
|
|
171
|
-
>
|
171
|
+
>
|
172
172
|
|
173
173
|
> // If it's a function
|
174
174
|
|
175
175
|
> if ( jQuery.isFunction( params ) ) {
|
176
176
|
|
177
|
-
>
|
177
|
+
>
|
178
178
|
|
179
179
|
> // We assume that it's the callback
|
180
180
|
|
@@ -182,7 +182,7 @@
|
|
182
182
|
|
183
183
|
> params = undefined;
|
184
184
|
|
185
|
-
>
|
185
|
+
>
|
186
186
|
|
187
187
|
> // Otherwise, build a param string
|
188
188
|
|
@@ -192,7 +192,7 @@
|
|
192
192
|
|
193
193
|
> }
|
194
194
|
|
195
|
-
>
|
195
|
+
>
|
196
196
|
|
197
197
|
> // If we have elements to modify, make the request
|
198
198
|
|
@@ -202,7 +202,7 @@
|
|
202
202
|
|
203
203
|
> url: url,
|
204
204
|
|
205
|
-
>
|
205
|
+
>
|
206
206
|
|
207
207
|
> // If "type" variable is undefined, then "GET" method will be used.
|
208
208
|
|
@@ -218,17 +218,17 @@
|
|
218
218
|
|
219
219
|
> } ).done( function( responseText ) {
|
220
220
|
|
221
|
-
>
|
221
|
+
>
|
222
222
|
|
223
223
|
> // Save response for use in complete callback
|
224
224
|
|
225
225
|
> response = arguments;
|
226
226
|
|
227
|
-
>
|
227
|
+
>
|
228
228
|
|
229
229
|
> self.html( selector ?
|
230
230
|
|
231
|
-
>
|
231
|
+
>
|
232
232
|
|
233
233
|
> // If a selector was specified, locate the right elements in a dummy div
|
234
234
|
|
@@ -236,13 +236,13 @@
|
|
236
236
|
|
237
237
|
> jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
|
238
238
|
|
239
|
-
>
|
239
|
+
>
|
240
240
|
|
241
241
|
> // Otherwise use the full result
|
242
242
|
|
243
243
|
> responseText );
|
244
244
|
|
245
|
-
>
|
245
|
+
>
|
246
246
|
|
247
247
|
> // If the request succeeds, this function gets "data", "status", "jqXHR"
|
248
248
|
|
@@ -262,7 +262,7 @@
|
|
262
262
|
|
263
263
|
> }
|
264
264
|
|
265
|
-
>
|
265
|
+
>
|
266
266
|
|
267
267
|
> return this;
|
268
268
|
|
1
コピペミスを修正
test
CHANGED
@@ -134,13 +134,13 @@
|
|
134
134
|
|
135
135
|
> var _load = jQuery.fn.load;
|
136
136
|
|
137
|
-
>
|
137
|
+
>
|
138
138
|
|
139
139
|
> /**
|
140
140
|
|
141
141
|
> * Load a url into a page
|
142
142
|
|
143
|
-
> *
|
143
|
+
> */
|
144
144
|
|
145
145
|
> jQuery.fn.load = function( url, params, callback ) {
|
146
146
|
|