jQuery.ajax({
url: '__URL__/login',
type: 'POST',
dataType: 'xml/html/script/json/jsonp',
data: {username: 'username'},
complete: function(xhr, textStatus) {
//called when complete
},
success: function(data, textStatus, xhr) {
//called when successful
},
error: function(xhr, textStatus, errorThrown) {
//called when there is an error
}
}); complete: function(xhr, textStatus) {
//called when complete
},
success: function(data, textStatus, xhr) {
//called when successful
},
error: function(xhr, textStatus, errorThrown) {
//called when there is an error
}这三段要怎么写,求解释, 最佳答案