This commit is contained in:
Vincent Ramiere 2021-10-18 12:02:32 +02:00
commit a016899223
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,6 @@
<div id="personne"></div> <div id="personne"></div>
</section> </section>
<button id = "page2">page suivante </button> <button id = "page2">page suivante</button>
</body> </body>
</html> </html>

View file

@ -50,6 +50,7 @@ fetch(API_URL)
}) })
.then(responsFormat2 => { .then(responsFormat2 => {
console.log(responsFormat2); console.log(responsFormat2);
MEMBER.innerHTML = " ";
for(let index = 0; index <6; index++){ for(let index = 0; index <6; index++){
console.log(responsFormat2.data[index]); console.log(responsFormat2.data[index]);
const PERSONNE = responsFormat2.data[index]; const PERSONNE = responsFormat2.data[index];