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

145
Views
Cómo mostrar la imagen de en lugar de una matriz vacía
const customImage = tmpl.customImage ? tmpl.customImage.map(c => c.url) : "https://yourl img here";

aquí tmpl.customImage está obteniendo una matriz vacía [], por lo que quiero mostrar una imagen predeterminada en lugar de vacía. Pero no se está recuperando la imagen predeterminada, se muestra vacía ...

Por favor ayúdenme gracias de antemano

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

0

¿Qué hay de comprobar su longitud?

 const customImage = tmpl.customImage.length ? tmpl.customImage.map(c => c.url) : "https://yourl img here";
about 4 years ago · Juan Pablo Isaza Report

0

use en lugar de eso: const customImage = tmpl.customImage.length ? tmpl.customImage.map(c => c.url) : "https://yourl img here";

about 4 years ago · Juan Pablo Isaza Report

0

proporcione el enlace de URL de su imagen en esa matriz, haga esa variable y use res.render para representar su archivo

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!