Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function start() {
- // REQUEST THE DATA FROM API
- $.ajax({
- dataType: "json",
- url: "js/data.json",
- data: data,
- success: function (result) {
- displayTheData(result)
- }
- });
- }
- function displayTheData(result) {
- console.log(result)
- }
- [{
- "name":"Google",
- "url": "google.es",
- },
- {
- "name":"Yahoo",
- "url": "yahoo.com",
- }
- ]
Add Comment
Please, Sign In to add comment