Arv*_*iya 2 jquery twitter-bootstrap angular
我低于异常
bootstrap.js:240 未捕获的类型错误:Bootstrap 的 JavaScript 需要 jQuery。jQuery 必须包含在 Bootstrap 的 JavaScript 之前
在 Object.jQueryDetection (bootstrap.js:240) 在 bootstrap.js:255 在 bootstrap.js:9 在 bootstrap.js:10
这是我的代码 Angular.json
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.css"
],
"scripts":
[
"node_modules/jquery/dist/jquery.js",
"node_modules/bootstrap/dist/js/bootstrap.js"
]
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
当然"node_modules/jquery/dist/jquery.min.js"应该属于“脚本”?
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.css"
],
"scripts":
[
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.js"
]
Run Code Online (Sandbox Code Playgroud)
现在复制的 jQuery 文件""node_modules/jquery/dist/jquery.js"应该被删除。
| 归档时间: |
|
| 查看次数: |
4309 次 |
| 最近记录: |