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

222
Views
TypeError no capturado: no se pueden leer las propiedades de undefined (leyendo 'estilo') style.width="200px"
win.forEach(e=>{ if((boxtexts[e[0]].innerText===boxtexts[e[1]].innerText) && (boxtexts[e[1]].innerText===boxtexts[e[2]].innerText) && (boxtexts[e[0]].innerText!=="")){ document.querySelector('.info').innerText=boxtexts[e[0]].innerText+ " Won"; isgameover=true document.querySelector(".gif").getElementsByClassName("gif")[0].style.width="200px" } })

Por favor, hágame saber qué tiene de malo esto??

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Compruebe la anidación. Si es correcto o no. Creo que no existe un elemento como "document.querySelector(".gif").getElementsByClassName("gif")[0]". Puede consolarlo. Regístrelo para asegurarse de que existe.

Además, intente no 2 querySelector, pero intente 2 usar querySelectorAll si tiene varios elementos de esta clase. Y después de obtener la matriz, puede manipularla eligiendo el elemento concreto en []. Saludos.

about 4 years ago · Juan Pablo Isaza Report

0

document.querySelector(".gif").getElementsByClassName("gif")[0] no devuelve ningún elemento. Probablemente tenga un error tipográfico o algo así, difícil de saber sin su código HTML.

about 4 years ago · Juan Pablo Isaza Report
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!