Pages

Monday, November 15, 2021

Fetch Json Data in JAVASCRIPT

 <script>

    fetch('./data.json')
    .then(function(resp){
        return resp.json();
    })
        .then(function(data){
        console.log(data.items[p].name.substr(7));
        content=data.items[p].name.substr(7)


        

    });
  

</script>

No comments:

Post a Comment

KeyPoints-Series-1

  The Android architecture has the Main Thread AKA UI thread, which updates the UI after every  16ms  frame.