jquery - 为什么即使在安装和导入依赖项之后,bootstrap 4 下拉和切换按钮也不起作用?
问题描述
这是我尝试过的!
https://navbarex.stackblitz.io
我已经安装了 bootstrap、jquery 和 popper.js
我已经在 angular.json 文件中导入了它
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"./node_modules/bootstrap/dist/js/bootstrap.js",
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/popper.js/dist/umd/popper.min.js"
]
我在我的本地机器上尝试过同样的事情,它工作正常,但为什么不在 StackBlitz 中呢?
解决方案
推荐阅读
- python - 具有不同字段和登录页面的多个用户模型?
- javascript - 如何从 tensorflow.js 下载模型和权重
- excel - 在 Excel VBA 中,将工作簿精确定位在表单控件上
- javascript - 在 Fusionchart JSON 格式中推送数组
- javascript - 使用 FileReader() 但发布时结果不在表单正文中
- c++ - std::initializer_list 构造函数和“支撑初始化”的问题
- c# - C# LINQ 投影到一个类
- json - 尝试使用对象反序列化 JSON 字典
- php - PHP 启动:无法加载动态库 'phalcon.so'
- javascript - 如何在 iframe 背景上拖放 javascript?