Created
December 4, 2018 01:35
-
-
Save rbaty-barr/ba77ecc2af01b198d788d474f44acffc to your computer and use it in GitHub Desktop.
ajax construct reminder
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
$.ajax({ | |
url: siteUrl, | |
method: "GET", | |
headers: { "Accept": "application/json; odata=verbose" }, | |
success: function (data) { | |
//do something | |
}, | |
error: function (data) { | |
console.log(JSON.stringify(data)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment