Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jqxhr = $.ajax( {
- url: "http://viacep.com.br/ws/23092205/json/?callback=?",
- beforeSend: function( xhr ) {
- alert( "Antes de enviar" );
- }})
- .done(function() {
- alert( "sucesso" );
- })
- .fail(function() {
- alert( "error" );
- })
- .always(function() {
- alert( "completo" );
- });
- jqxhr.always(function() {
- alert( "sempre passa aqui" );
- });
Add Comment
Please, Sign In to add comment