bootstrap.css.map 404 not found
来源:互联网 发布:内存测试软件 编辑:程序博客网 时间:2024/05/01 22:04
bootstrap.css.map这个文件有何用处?该怎能使用它?
. ├── bootstrap.css ├── bootstrap.css.map ├── bootstrap.min.css ├── bootstrap-theme.css ├── bootstrap-theme.css.map └── bootstrap-theme.min.css 0 directories, 6 files
我先说一下什么是source map文件。 source map文件是js文件压缩后,文件的变量名替换对应、变量所在位置等元信息数据文件,一般这种文件和min.js主文件放在同一个目录下。 比如压缩后原变量是map,压缩后通过变量替换规则可能会被替换成a,这时source map文件会记录下这个mapping的信息,这样的好处就是说,在调试的时候,如果有一些JS报错,那么浏览器会通过解析这个map文件来重新merge压缩后的js,使开发者可以用未压缩前的代码来调试,这样会给我们带来很大的方便! 而这种还原性调试功能,目前只有chorme才具有,所以就会出现标题说的问题,我引入jquery-1.10.2.min.js的时候,在firefox下或者其他浏览器下是好的,在chorme下会报错找不到jquery-1.10.2.min.map文件,404,就是因为以上说的情况,jquery会检测浏览器是否支持source map功能,如果支持的话,那就去下载source map文件,而这个时候如果你引用的是官网的min.js那没问题,它会去自己的目录下找source map文件,而如果jquery.min.js文件在你的服务器上而服务器上又没有source map的话,那就会报错了,所以三种解决办法:一,引用官网文件 二,把source map文件下载下来放到服务器上(推荐) 三,把chorme文件的工具-->开发者工具-->设置-->Enable source maps勾去掉,去掉这个勾,jquery就不会去下载source map文件了!
0 1
- bootstrap.css.map 404 not found
- jquery.min.map 404 (Not Found)
- jekyll serve E`/assets/themes/bootstrap-3/css/style.css' not found.
- xcode : map file not found
- jquery.min.map is triggering a 404 (Not Found)
- 解决jquery-1.10.2.min.map 404 Not Found错误
- 导致jquery.min.map 404 (Not Found)错误的原因
- Bootstrap glyphicons-halflings-regular.woff2 Not found
- -bash: !css": event not found
- jQuery-1.9+.min.map 404 (Not Found) 错误,了解Source Map
- bootstrap解决图标显示不出来问题,出现GET .woff 404 (Not Found)的问题
- 引入Bootstrap老是报错:the server responded with a status of 404 (Not Found)
- 404 NOT FOUND!
- 404 Not Found
- jquery-1.10.2.min.map 404 (Not Found)问题及解决
- jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found)
- Chrome调试时提示angular.min.js.map 404 (Not Found)问题的解决
- jquery-1.10.2.min.map 404 (Not Found)问题及解决
- Angular学习-ng-route与ui-router路由的区别
- STM32F407VGT6+LAN8720 调试笔记
- bzoj 3238 [Ahoi2013]差异
- Swift 3.0 基础部分
- java设计模式之---------------工厂模式
- bootstrap.css.map 404 not found
- 百度提交收录网站
- Android 远程调试工具STF——开源项目
- vue-router的router-view不能渲染;vue2.0中遇到的路由上的一些坑
- 4G网络相关知识(一)
- 浅谈栈与堆的理解(全局变量是在堆内还是在栈内?)
- Idea-深入github Android(二)
- Idea-深入github Android(三)
- Idea-深入github Android(四)