Briefly after the function is executed after a request in the ajax url success (success) or failure (error) called, for example:. $ Ajax ({
of the type: "POST",
url: "... / ... / ...", / request address performed (i.e.: background method call) /
Cache: to true,
Data: "XXX",
dataType: "JSON",
Success: function (Data) {
...; / program statements /
},
error: function () {
... ; / program statements /
}
})
after the above example, the request url is performed background method, if successful callback to success: function executed inside the statement, it url callback request fails error: within the statement function method.
Understanding of each parameter ajax callback function
Guess you like
Origin blog.csdn.net/weixin_39638459/article/details/87993479
Recommended
Ranking