Failed to load resource: the server responded with a status of 500 (Internal Server Error)
2016-09-27 17:56
741 查看
第一种情况:sql误写成了day_use_sql 所以报错: POST http:// 500 (Internal Server Error)
第二种情况: 标题中的错误是因为
对数据库的操作中少写了一个 var arr=[];
所以在这里mysql.preQuery(sql, arr, callback);会出现错误
总之500都是服务器内部错误,检查对数据库操作的文件。
if (data.dayTime && data.dayTime != '') { if(flag) { day_use_sql += " and Date_Time = ? "; }else { day_use_sql += " where Date_Time = ? "; flag = true; } arr.push(data.dayTime); }
第二种情况: 标题中的错误是因为
对数据库的操作中少写了一个 var arr=[];
所以在这里mysql.preQuery(sql, arr, callback);会出现错误
总之500都是服务器内部错误,检查对数据库操作的文件。
相关文章推荐
- 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 (Internal Server Error)
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- SharePoint Debug - Failed to load resource: the server responded with a status of 500
- Failed to load resource: the server responded with a status of 500 ()
- Failed to load resource: the server responded with a status of 404
- 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 400 (Bad Request)
- 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)问题的解决方案
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- SrpingMVC==>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)
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- 关于前台jsp页面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)