func toegevoegd data ontvangen van webserver en omzetten in array
This commit is contained in:
@@ -687,5 +687,9 @@ function sendData(naam, score) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getData(){
|
function getData(){
|
||||||
|
//haalt data op van de database en plaatst die in een array en print het uit in de console
|
||||||
|
fetch ('https://oege.ie.hva.nl/~hossan/getData.php')
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data=>{ console.log(data); })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user