Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
¿Cómo puedo mostrar todos los elementos de la API en HTML en varias páginas?

Así que tengo un sitio web que muestra películas de una API, pero solo muestra 20 elementos en una página y me gustaría que mostrara todos los elementos en varias páginas numeradas. Imagen del sitio web: ingrese la descripción de la imagen aquí

JavaScript:

 fetchURL(url); function fetchURL(url){ fetch(url) .then(res => res.json()) .then(data =>{ trendingMovies(data.results) }) } trendingMovies = movies =>{ movie_container.innerHTML = ''; movies.forEach(movie => { img = IMG_URL + movie.poster_path; title = movie.title; const movieEl = document.createElement('div'); movieEl.classList.add('movie'); movieEl.innerHTML = `<img src="${img}"> <span class="movie_title">${title}</span> ` movie_container.appendChild(movieEl); }); };

Así que estoy buscando una forma de mostrar más de 20 elementos de API

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!