Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch to get data from server

fetch(url).then(function(response) {
  response.text().then(function(dataFromServer) {
    //do stuff
  });
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #fetch #data #server
ADD COMMENT
Topic
Name
2+1 =