无法读取未定义的“fn”属性?

Xoa*_*aks 1 html javascript http-status-code-404

在我的 github 页面上获取这些错误代码。我将这些作为加载脚本的顺序:

<script src="../../node_modules/jquery/dist/jquery.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/index.js"></script>
Run Code Online (Sandbox Code Playgroud)

以下是错误消息:

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
Run Code Online (Sandbox Code Playgroud)

这是我的页面: https: //tmolano.github.io/CareerMod4/

除了加载顺序之外,还有什么可能导致此问题?

Ali*_*our 6

出现此错误的可能原因:

未捕获的类型错误:无法读取未定义的属性“fn”

  1. 对文件地址的引用无效或丢失文件(您的情况)。
  2. 对 Jquery 的重复引用。
  3. 覆盖第三方库中 Jquery 的 $ 符号。
  4. 在插入 Jquery 之前使用 Jquery 函数(不是你的情况)。
  5. 在 jquery 中的 WINDOW 元素上使用不推荐使用的加载、错误、卸载语法,而不使用on