<link rel="stylesheet" href="dist/css/bootstrap.min.css" crossorigin="anonymous">
引用本地文件报错:Access to CSS stylesheet at 'file:///D:/workspace/netsite/bootstrap/css/bootstrap.min.css' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.
原因:crossorigin="anonymous"
跨域的时候用的属性,加载本地静态文件根本就不牵涉跨域的问题,所以本地就不应该用它