Skip to content

Instantly share code, notes, and snippets.

@alexserver
Created December 6, 2013 22:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alexserver/7833247 to your computer and use it in GitHub Desktop.
Some sample about jquery new deferred object. this is an illustration for some friends that asked me about how to use it.
$.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