原文:layer報錯Refused to apply style from 'http://192.168.101.12:5502/skin/layer.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled的解決方法

前言 最近在使用layui框架的獨立組件layer時遇到了如下報錯,這讓我有點懵逼 我是直接在官網把layer下載到本地,然后把里面的layer.js和layer.css分別引入到自己的項目中, 路徑檢查過幾次沒有問題,並且layer.js和layer.css引入也都能正常使用,但控制台卻報了上圖的錯誤提示。 我在本地的layer.css路徑是: lt link rel stylesheet h ...

2021-06-01 18:21 0 1406 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM