teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

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

2019/01/08 10:42

投稿

naoki_m
naoki_m

スコア29

title CHANGED
File without changes
body CHANGED
@@ -46,7 +46,6 @@
46
46
  <script src="js/vendor/what-input.js"></script>
47
47
  <script src="js/vendor/foundation.js"></script>
48
48
  <script src="js/app.js"></script>
49
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
50
49
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"></script>
51
50
  <script src="js/vendor/jscroll/dist/jquery.jscroll.min.js"></script>
52
51
  <script type="text/javascript">

2

誤字

2019/01/08 10:42

投稿

naoki_m
naoki_m

スコア29

title CHANGED
File without changes
body CHANGED
@@ -71,7 +71,7 @@
71
71
  エラー1↓
72
72
  ```
73
73
  jquery.min.js:2 Uncaught TypeError: $(...).jscroll is not a function
74
- at HTMLDocument.<anonymous> (home:587)
74
+ at HTMLDocument.<anonymous> (home:)
75
75
  at j (jquery.min.js:2)
76
76
  at k (jquery.min.js:2)
77
77
  (anonymous) @ home:587
@@ -105,7 +105,7 @@
105
105
  ```
106
106
  Uncaught SyntaxError: Unexpected token : bootstrap.min.css:6
107
107
  jquery.min.js:2 jQuery.Deferred exception: $(...).jscroll is not a function TypeError: $(...).jscroll is not a function
108
- at HTMLDocument.<anonymous> (http://naotst3.info/home:587:35)
108
+ at HTMLDocument.<anonymous> (http://)
109
109
  at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
110
110
  at k (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313) undefined
111
111
  r.Deferred.exceptionHook @ jquery.min.js:2

1

エラー文を追加しました

2019/01/08 10:01

投稿

naoki_m
naoki_m

スコア29

title CHANGED
File without changes
body CHANGED
@@ -65,4 +65,58 @@
65
65
  });
66
66
  </script>
67
67
  </body>
68
+ ```
69
+
70
+ ### エラー
71
+ エラー1↓
72
+ ```
73
+ jquery.min.js:2 Uncaught TypeError: $(...).jscroll is not a function
74
+ at HTMLDocument.<anonymous> (home:587)
75
+ at j (jquery.min.js:2)
76
+ at k (jquery.min.js:2)
77
+ (anonymous) @ home:587
78
+ j @ jquery.min.js:2
79
+ k @ jquery.min.js:2
80
+ setTimeout (async)
81
+ r.readyException @ jquery.min.js:2
82
+ (anonymous) @ jquery.min.js:2
83
+ j @ jquery.min.js:2
84
+ k @ jquery.min.js:2
85
+ setTimeout (async)
86
+ (anonymous) @ jquery.min.js:2
87
+ i @ jquery.min.js:2
88
+ fireWith @ jquery.min.js:2
89
+ fire @ jquery.min.js:2
90
+ i @ jquery.min.js:2
91
+ fireWith @ jquery.min.js:2
92
+ k @ jquery.min.js:2
93
+ setTimeout (async)
94
+ (anonymous) @ jquery.min.js:2
95
+ i @ jquery.min.js:2
96
+ fireWith @ jquery.min.js:2
97
+ fire @ jquery.min.js:2
98
+ i @ jquery.min.js:2
99
+ fireWith @ jquery.min.js:2
100
+ ready @ jquery.min.js:2
101
+ S @ jquery.min.js:3
102
+
103
+ ```
104
+ エラー2↓
105
+ ```
106
+ Uncaught SyntaxError: Unexpected token : bootstrap.min.css:6
107
+ jquery.min.js:2 jQuery.Deferred exception: $(...).jscroll is not a function TypeError: $(...).jscroll is not a function
108
+ at HTMLDocument.<anonymous> (http://naotst3.info/home:587:35)
109
+ at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
110
+ at k (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313) undefined
111
+ r.Deferred.exceptionHook @ jquery.min.js:2
112
+ k @ jquery.min.js:2
113
+ setTimeout (async)
114
+ (anonymous) @ jquery.min.js:2
115
+ i @ jquery.min.js:2
116
+ fireWith @ jquery.min.js:2
117
+ fire @ jquery.min.js:2
118
+ i @ jquery.min.js:2
119
+ fireWith @ jquery.min.js:2
120
+ ready @ jquery.min.js:2
121
+ S @ jquery.min.js:3
68
122
  ```