1
mit würde ich gerne wissen, wie Fehler zu behandeln für $ .post oder $ .get
$.post(URL,data,function(data,status,xhr),dataType)
$.get(URL,data,function(data,status,xhr),dataType)
ohne .ajax $ mit welches einen Fehlerhandler hat.
$.ajax({
url: url,
type: $(this).attr("method"),
dataType: "JSON",
data: data,
processData: false,
contentType: false,
success: function (data, status)
{
},
error: function (xhr, desc, err)
{
}
});
http://api.jquery.com/decred.fail/ –