ajax
error: function(jqXHR, textStatus, errorThrown) {
errorGo(textStatus, errorThrown);
},
errorGO ()
function errorGO(status, error){
console.log("textStatus: %s, errorThrown: %s", status, error, location, type);
alert("Something went wrong :(");
$.ajax("https://xx.x.com/x/query.php", {
type: "POST",
data: {
"message": status,
"error": error
},
dataType: "text",
crossDomain: true,
success: function(){
location.href = "/wrong";
console.log("go /wrong");
}
});
return;
}
query.php
status error
the weird thing is: make sure there are profitable databases. But did not perform the location.href ="/ wrong";
jump?
where is the problem? Or is there a better way to avoid this problem?