Some sample about jquery new deferred object. this is an illustration for some friends that asked me about how to use it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.get( "test.php" ) | |
.done(function() { | |
alert( "$.get succeeded" ); | |
}) | |
.fail(function() { | |
alert( "$.get failed!" ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment