carelessness:
$.ajax({
type: 'POST',
async: false,
url: url,
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify(postData),
success: function(result){
if(result.state==1){
//成功
var data = result.data.tableList;
var sumnum = result.data.iSumNum;
grid.setDatasource(data,sumnum);
}else{
cui.error("数据初始化失败");
}
}
});
}
开始的时候没写url导致该错误
div>
Read More:
- ajax error 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 404 (Not Found)
- 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 403 (Forbidden)
- Failed to load resource: the server responded with a status of 503 (Service Unavailable)
- Nginx 502 Error: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
- [How to Solve] ashx Http Delete method not allowed
- Solve the problem that the delete request is not available under SpringBoot. There was an unexpected error (type=Method Not Allowed, status=405).
- HTTP error 405.0 – method not allowed solution for put and delete operations of rest Service on iis7.5
- Solve the Google Chrome Failed to load resource: net::ERR_FAILED problem
- Nginx proxy appears Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- HTTP status 500 – internal server error (resolved) for Tomcat running project
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- Host is not allowed to connect to this MySQL server
- Failed to load resource: net::ERR_CONNECTION_REFUSED
- failed to load resource file osql.rll
- Failed to load resource: net::ERR_CONNECTION_RESET
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]
- Chrome Failed to load resource: net::ERR_CACHE_MISS
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING