failed to load resource the server responded with a status of 500 (internal server error)
2017-11-30 16:53
1691 查看
本质错误原因:无法加载得到的信息。
看了网上各种分析,引起这种情况的原因很多,主要分为以下几种:
1.jquery.ajax中的回调函数没有执行
参照http://blog.csdn.net/ye1992/article/details/8478970
2.跨域问题
参照http://blog.csdn.net/platform/article/details/7953716
3.后台取数据异常
查看后台有没有出错
本人解决实例:
我由于copy另一个页面的代码,运行时正常,在不搜索数据或搜索不到数据的时候也正常,只有在搜索到某些数据的时候,出现了页面“加载数据异常”的提示。
这次出现这个问题的原因是数据库中有了脏数据,但是由于写的不完善,导致在取数的时候后台并没有报错。所以一直以为是页面的问题。
在将要执行的sql在数据库中执行后,对比页面信息,得出异常数据,删除即可。
提示:
此错误在前端用google浏览器调试的时候,报错界面在network。
但是显示错误点在jquery.js中d xhr.send( ( options.hasContent && options.data ) || null );
参考学习:http://blog.csdn.net/liangklfang/article/details/50245763
看了网上各种分析,引起这种情况的原因很多,主要分为以下几种:
1.jquery.ajax中的回调函数没有执行
参照http://blog.csdn.net/ye1992/article/details/8478970
2.跨域问题
参照http://blog.csdn.net/platform/article/details/7953716
3.后台取数据异常
查看后台有没有出错
本人解决实例:
我由于copy另一个页面的代码,运行时正常,在不搜索数据或搜索不到数据的时候也正常,只有在搜索到某些数据的时候,出现了页面“加载数据异常”的提示。
这次出现这个问题的原因是数据库中有了脏数据,但是由于写的不完善,导致在取数的时候后台并没有报错。所以一直以为是页面的问题。
在将要执行的sql在数据库中执行后,对比页面信息,得出异常数据,删除即可。
提示:
此错误在前端用google浏览器调试的时候,报错界面在network。
但是显示错误点在jquery.js中d xhr.send( ( options.hasContent && options.data ) || null );
参考学习:http://blog.csdn.net/liangklfang/article/details/50245763
相关文章推荐
- failed to load resource the server responded with a status of 500 (internal server error)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- PHP 中 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Failed to load resource: the server responded with a status of 500 ()
- SharePoint Debug - Failed to load resource: the server responded with a status of 500
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- SpringMVC+shiro项目静态资源不能访问:Failed to load resource: the server responded with a status of 404
- springmvc获取json 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 504 (Gateway Time-out)
- ajaxSubmit 报错 400 (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 400 (Bad Request)
- SrpingMVC==>Failed to load resource: the server responded with a status of 404(Not Found)
- Spring MVC json报406错误的解决办法 Failed to load resource: the server responded with a status of 406
- 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 504 (Gateway Time-out)
- ajax 报错 400 (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 406 (Not Acceptable)