JQuery get getJson post Usage

linkaiyi
Follow

JQuery use get / getJson

$.getJSON( "example.json", function(data) {
   console.log( "success" );
}).done(function() {
   console.log( "second success" );
})
.fail(function() {
  console.log( "error" );
})
.always(function() {
   console.log( "complete" );
});
Object has 0 attachments

Was this article helpful?

This article is viewed 19 times!

0 Comments

Leave a Comment

Support