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

165
Views
¿Cómo almacenar una variable de resultado dentro de la función?

Uso EasyQRCodeJS , una biblioteca para generar códigos QR.

Se muestra el código QR. Sin embargo, quiero guardar la imagen en base 64 para usarla más tarde. La consola muestra la salida en formato base64, pero no puedo almacenar este valor.

 var storeBase64 = ''; var optionsQr = { text: 'Hello', width: 216, height: 216, correctLevel : QRCode.CorrectLevel.H, onRenderingEnd:function(options, dataURL) { console.info(dataURL); /* Ok */ storeBase64 = dataURL; /* Nok */ } } new QRCode(document.querySelector('#myqr'), optionsQr); console.log(storeBase64); /* Nok */
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!