fixed small bugs, added a table to show the flotte
This commit is contained in:
1 parent
fe90e2d766
commit
608cceec18
3 files changed
+46
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
async function chargerFlotte() {
|
||||
const reponse = await fetch("./vehicules.json"); // on demande le fichier
|
||||
const reponse = await fetch("../vehicules.json"); // on demande le fichier
|
||||
const vehicules = await reponse.json(); // on le transforme en tableau JS
|
||||
console.log(vehicules); // pour vérifier
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user