Bootstrap显示好像不是jQuery



我正在使用jQuery bootstrap构建一个项目。所有HTML静态引导程序都非常完美。但是jQuery部分行不通。控制台认为,Bootstrap的JavaScript需要jQuery。但是我的想法有所不同,因为我添加了jQuery。

我的代码:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel = "stylesheet" type = "text/css" href = "bootstrap/dist/css/bootstrap.css">
<link rel = "stylesheet" type = "text/css" href = "bootstrap/dist/css/bootstrap-theme.css">
<script src = "bootstrap/dist/js/bootstrap.js"></script>
<script src = "js/jquery-3.2.1.js"></script>

正确添加了此文件中的所有路径。我自动将它们添加到括号中。

我的错误在哪里?

您需要在bootstrap之前加载jQuery,因为Bootstrap JavaScript需要jQuery

最新更新