报错背景
最近一直在使用Bootstrap框架,可以快速在下面网页上搭建前端界面。ibootstrap
但是搭建完,需要引用css,js,以及jquery,这样效果才可以使用。
错误方法一
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link href="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/js/bootstrap.min.js"></script>
上面是我使用的方法,可以直接在网站上引用这些代码。
方法一报错
但是第二天,这方法突然没有了,并且前台报错
Refused to execute script from ‘https://cdn.bootcss.com/twitter-bootstrap/3.0.1/js/bootstrap.min.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.