Html 引导下拉按钮没有';t使用引导4进行下拉
我正在使用引导创建一个flask应用程序。我试图使用一个需要jquery+popper的元素,比如下拉菜单。按钮出现了,但没有掉下来Html 引导下拉按钮没有';t使用引导4进行下拉,html,jquery,bootstrap-4,drop-down-menu,popper.js,Html,Jquery,Bootstrap 4,Drop Down Menu,Popper.js,我正在使用引导创建一个flask应用程序。我试图使用一个需要jquery+popper的元素,比如下拉菜单。按钮出现了,但没有掉下来 <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/static/node_modules/bootstrap/dist/css/bootstrap.min.css">
<title>hello world</title>
</head>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
<script src="/static/node_modules/jquery/dist/jquery.min.js"</script>
<script src="/static/node_modules/popper.js/dist/popper.min.js" </script>
<script src="/static/node_modules/bootstrap/dist/js/bootstrap.min.js" </script>
<body>
</html>
你好,世界
下拉按钮
您忘记关闭index.html中的脚本标记
<script src="/static/node_modules/jquery/dist/jquery.min.js"></script>
<script src="/static/node_modules/popper.js/dist/popper.min.js"></script>
<script src="/static/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
这三个都以。我还遗漏了什么吗?>我想解释一下这部作品中遗漏了什么,但结果是我还有一个额外的问题——我还导入了“/static/node_modules/popper.js/dist/popper.min.js”,但我需要导入“/static/node_modules/popper.js/dist/umd/popper.min.js”
?
<script src="/static/node_modules/jquery/dist/jquery.min.js"></script>
<script src="/static/node_modules/popper.js/dist/popper.min.js"></script>
<script src="/static/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>