Solidt.eu
  • Home
  • Code snippets
  • News

Javascript / browser Fetch Api

Date: 2018-10-17
fetch('http://example.com/movies.json')
  .then(function(response) {
    return response.json();
  })
  .then(function(myJson) {
    console.log(JSON.stringify(myJson));
  });

For more: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

147900cookie-checkJavascript / browser Fetch Apino
Loading