bouton page 2 qui fonctionne cette fois merci jeremy

This commit is contained in:
Blandine Bajard 2021-10-18 11:59:16 +02:00
parent c7bfce2711
commit 40d7101588
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

@ -46,6 +46,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];