【发布时间】:2020-02-18 11:01:17
【问题描述】:
我遇到了异常
bootstrap.js:240 Uncaught TypeError: 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"
]
我该如何解决这个问题?
【问题讨论】:
标签: jquery angular twitter-bootstrap