Skip to content

Instantly share code, notes, and snippets.

@alexserver
Created December 6, 2013 22:29
Show Gist options
  • Save alexserver/7833247 to your computer and use it in GitHub Desktop.
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