A Pen by Zaki Wasik on CodePen.
Created
April 30, 2017 08:27
-
-
Save zkwsk/c626b50b20842cbc07dd7ee9f1e61b3f to your computer and use it in GitHub Desktop.
rmmLGr
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
// https://jsonplaceholder.typicode.com/ | |
var root = 'https://jsonplaceholder.typicode.com'; | |
$.ajax({ | |
url: root + '/comments/1/comments', | |
method: 'GET' | |
}).then(function(data) { | |
console.log(data); | |
}); |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment