質問編集履歴

3

jqueryの重複読み込みを直しました

2019/01/08 10:42

投稿

naoki_m
naoki_m

スコア29

test CHANGED
File without changes
test CHANGED
@@ -94,8 +94,6 @@
94
94
 
95
95
  <script src="js/app.js"></script>
96
96
 
97
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
98
-
99
97
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"></script>
100
98
 
101
99
  <script src="js/vendor/jscroll/dist/jquery.jscroll.min.js"></script>

2

誤字

2019/01/08 10:42

投稿

naoki_m
naoki_m

スコア29

test CHANGED
File without changes
test CHANGED
@@ -144,7 +144,7 @@
144
144
 
145
145
  jquery.min.js:2 Uncaught TypeError: $(...).jscroll is not a function
146
146
 
147
- at HTMLDocument.<anonymous> (home:587)
147
+ at HTMLDocument.<anonymous> (home:)
148
148
 
149
149
  at j (jquery.min.js:2)
150
150
 
@@ -212,7 +212,7 @@
212
212
 
213
213
  jquery.min.js:2 jQuery.Deferred exception: $(...).jscroll is not a function TypeError: $(...).jscroll is not a function
214
214
 
215
- at HTMLDocument.<anonymous> (http://naotst3.info/home:587:35)
215
+ at HTMLDocument.<anonymous> (http://)
216
216
 
217
217
  at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
218
218
 

1

エラー文を追加しました

2019/01/08 10:01

投稿

naoki_m
naoki_m

スコア29

test CHANGED
File without changes
test CHANGED
@@ -133,3 +133,111 @@
133
133
  </body>
134
134
 
135
135
  ```
136
+
137
+
138
+
139
+ ### エラー
140
+
141
+ エラー1↓
142
+
143
+ ```
144
+
145
+ jquery.min.js:2 Uncaught TypeError: $(...).jscroll is not a function
146
+
147
+ at HTMLDocument.<anonymous> (home:587)
148
+
149
+ at j (jquery.min.js:2)
150
+
151
+ at k (jquery.min.js:2)
152
+
153
+ (anonymous) @ home:587
154
+
155
+ j @ jquery.min.js:2
156
+
157
+ k @ jquery.min.js:2
158
+
159
+ setTimeout (async)
160
+
161
+ r.readyException @ jquery.min.js:2
162
+
163
+ (anonymous) @ jquery.min.js:2
164
+
165
+ j @ jquery.min.js:2
166
+
167
+ k @ jquery.min.js:2
168
+
169
+ setTimeout (async)
170
+
171
+ (anonymous) @ jquery.min.js:2
172
+
173
+ i @ jquery.min.js:2
174
+
175
+ fireWith @ jquery.min.js:2
176
+
177
+ fire @ jquery.min.js:2
178
+
179
+ i @ jquery.min.js:2
180
+
181
+ fireWith @ jquery.min.js:2
182
+
183
+ k @ jquery.min.js:2
184
+
185
+ setTimeout (async)
186
+
187
+ (anonymous) @ jquery.min.js:2
188
+
189
+ i @ jquery.min.js:2
190
+
191
+ fireWith @ jquery.min.js:2
192
+
193
+ fire @ jquery.min.js:2
194
+
195
+ i @ jquery.min.js:2
196
+
197
+ fireWith @ jquery.min.js:2
198
+
199
+ ready @ jquery.min.js:2
200
+
201
+ S @ jquery.min.js:3
202
+
203
+
204
+
205
+ ```
206
+
207
+ エラー2↓
208
+
209
+ ```
210
+
211
+ Uncaught SyntaxError: Unexpected token : bootstrap.min.css:6
212
+
213
+ jquery.min.js:2 jQuery.Deferred exception: $(...).jscroll is not a function TypeError: $(...).jscroll is not a function
214
+
215
+ at HTMLDocument.<anonymous> (http://naotst3.info/home:587:35)
216
+
217
+ at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
218
+
219
+ at k (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313) undefined
220
+
221
+ r.Deferred.exceptionHook @ jquery.min.js:2
222
+
223
+ k @ jquery.min.js:2
224
+
225
+ setTimeout (async)
226
+
227
+ (anonymous) @ jquery.min.js:2
228
+
229
+ i @ jquery.min.js:2
230
+
231
+ fireWith @ jquery.min.js:2
232
+
233
+ fire @ jquery.min.js:2
234
+
235
+ i @ jquery.min.js:2
236
+
237
+ fireWith @ jquery.min.js:2
238
+
239
+ ready @ jquery.min.js:2
240
+
241
+ S @ jquery.min.js:3
242
+
243
+ ```