Error: Bootstrap's JavaScript requires jQuery错误 boostrap下拉菜单无效Angular is running in the development

版权声明:独学而无友,则孤陋寡闻。q群582951247 https://blog.csdn.net/mp624183768/article/details/82852708
引入bootstrap时会出现的问题:boostrap下拉菜单无效,浏览器报Uncaught Error: Bootstrap's JavaScript requires jQuery错误,
解决办法:注意css,js文件引入的先后顺序,应该先引入jquery的js文件再引入bootstrap的css文件

Angular is running in the development mode. Call enableProdMode() to enable the production mode.

控制台输出:Angular is running in the development mode. Call enableProdMode() to enable the production mode.

解决方法:

在main.ts中调用enableProdMode()方法

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/82852708