1.报错:Refused to execute script from ‘http://localhost:63342/vueTest/src/main/resources/static/css/bootstrap.min.css’ because its MIME type (‘text/css’) is not executable, and strict MIME type checking is enabled.
解决:css文件应该使用<link>
标签。
<link rel="stylesheet" href="../src/main/resources/static/css/bootstrap.min.css" target="_blank" rel="external nofollow" >
2.报错:bootstrap.min.js:6 Uncaught Error: Bootstrap’s JavaScript requires jQuery
at bootstrap.min.js:6
解决:引用顺序jquery要在bootstrap.min.js之前。