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

164
Views
¿Cómo genero un código QR en JavaScript (shadowDom) y genero una URL de datos para la imagen?

Tengo problemas para encontrar una biblioteca que funcione en un componente web shadowDom. El único que parece muy recomendable requiere un "id" como argumento (no encontrará el id porque está en shadowDom.

  1. generar código qr a partir de una cadena (es decir, url)
  2. generar una URL de datos para que se muestre la etiqueta img
 this.id = crypto.getRandomValues(new Uint32Array(1)); this.data = new QRCode().makeCode(this.id); //this.data = QR.encode(this.id); this.qrCode = btoa(this.data.toByteArray()));

Aquí está la biblioteca: https://taisukef.github.io/qrcode-generator/es/QR.js

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!