无法读取未定义的 'fn' 的 属性?
Cannot read property of 'fn' of undefined?
在我的 github 页面上获取这些错误代码。我将这些作为加载脚本的顺序:
<script src="../../node_modules/jquery/dist/jquery.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/index.js"></script>
错误信息如下:
GET https://tmolano.github.io/CareerMod4/node_modules/jquery/dist/jquery.js 404 ()
index.html:115 GET https://tmolano.github.io/CareerMod4/node_modules/popper.js/dist/popper.min.js 404 ()
util.js:56 Uncaught TypeError: Cannot read property 'fn' of undefined
at util.js:56
at util.js:10
at bootstrap.min.js:6
at bootstrap.min.js:6
(anonymous) @ util.js:56
(anonymous) @ util.js:10
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
这是我的页面:https://tmolano.github.io/CareerMod4/
除了加载顺序,还有什么可能导致这个?
出现此错误的可能原因:
Uncaught TypeError: Cannot read property 'fn' of undefined
- 对文件地址的引用无效或文件丢失(您的情况)。
- 重复引用 Jquery。
- 覆盖第 3 方库中 Jquery 的 $ 符号。
- 在插入 Jquery 之前使用 Jquery 函数(不是你的情况)。
- 在没有
on
的 jquery 中的 WINDOW 元素上使用不推荐使用的加载、错误、卸载语法
在我的 github 页面上获取这些错误代码。我将这些作为加载脚本的顺序:
<script src="../../node_modules/jquery/dist/jquery.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/index.js"></script>
错误信息如下:
GET https://tmolano.github.io/CareerMod4/node_modules/jquery/dist/jquery.js 404 ()
index.html:115 GET https://tmolano.github.io/CareerMod4/node_modules/popper.js/dist/popper.min.js 404 ()
util.js:56 Uncaught TypeError: Cannot read property 'fn' of undefined
at util.js:56
at util.js:10
at bootstrap.min.js:6
at bootstrap.min.js:6
(anonymous) @ util.js:56
(anonymous) @ util.js:10
(anonymous) @ bootstrap.min.js:6
(anonymous) @ bootstrap.min.js:6
这是我的页面:https://tmolano.github.io/CareerMod4/
除了加载顺序,还有什么可能导致这个?
出现此错误的可能原因:
Uncaught TypeError: Cannot read property 'fn' of undefined
- 对文件地址的引用无效或文件丢失(您的情况)。
- 重复引用 Jquery。
- 覆盖第 3 方库中 Jquery 的 $ 符号。
- 在插入 Jquery 之前使用 Jquery 函数(不是你的情况)。
- 在没有
on
的 jquery 中的 WINDOW 元素上使用不推荐使用的加载、错误、卸载语法