Failed to load resource: the server responded with a status of 404 (Not Foun
2018-02-05 15:48
756 查看
小弟菜鸟一枚,在开发页面时发现需要一个俩行的js,想着没多少也简单就在html中写吧,可是写完发现<script>标签报错,错误为Failed to load resource: the server responded with a status of 404 (Not Found)
说一下我的解决办法:
首先你的js片段看看是在哪里,拿我的举例我的js片段一开始在body外层,并且页面有一张图片路径有问题报(404)期初没有在意 以为没有影响结果就报错了(对自己表示呵呵),
我先是把图片路径问题解决了,ssm框架注意一下对静态资源的放行,路径呢也最好写成绝对路径。
然后将js片段放到body里面。我的问题就解决了可以开心的写后台了,希望能帮到大家。
说一下我的解决办法:
首先你的js片段看看是在哪里,拿我的举例我的js片段一开始在body外层,并且页面有一张图片路径有问题报(404)期初没有在意 以为没有影响结果就报错了(对自己表示呵呵),
我先是把图片路径问题解决了,ssm框架注意一下对静态资源的放行,路径呢也最好写成绝对路径。
然后将js片段放到body里面。我的问题就解决了可以开心的写后台了,希望能帮到大家。
相关文章推荐
- jquery:Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 404 (Not Found)
- SrpingMVC==>Failed to load resource: the server responded with a status of 404(Not Found)
- SpringMVC+shiro项目静态资源不能访问:Failed to load resource: the server responded with a status of 404
- Failed to load resource: the server responded with a status of 404
- (springmvc)页面找不到静态资源文件Failed to load resource: the server responded with a status of 404 (Not Found)
- springmvc Failed to load resource: the server responded with a status of 404 (Not Found)
- 好困出来的bugFailed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 404 (Not Found)
- ripple Failed to load resource: the server responded with a status of 404 (Not Found)
- failed to load resource the server responded with a status of 500 (internal server error)
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Failed to load resource: the server responded with a status of 500 ()
- Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Failed to load resource: the server responded with a status of 406 (Not Acceptable)问题的解决方案
- Failed to load resource: the server responded with a status of 400 (Bad Request)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)