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

176
Views
s.substr no es una función

Estoy usando canvg , pero cuando ejecuto esto:

 jQuery("#print").on("click", function() { mySvg(); }); function mySvg() { var svg = jQuery("#map svg"); canvg(document.getElementById('canvas'), svg); }

me sale esto en la consola

canvg.js:58 TypeError no detectado: s.substr no es una función

Aquí es un jsFiddle

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Siguza es correcto, desea obtener el HTML interno de su SVG entonces (suponiendo que #map sea el padre directo de su svg de destino):

 var svg = jQuery('#map'); var txt = svg.innerHTML;

Luego desea pasar la variable txt como su segundo argumento canvg() .

about 4 years ago · Santiago Trujillo 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!