Home > front end >  After page with canvas2. Js into canvas, the content of the same label inside, lost a part of other
After page with canvas2. Js into canvas, the content of the same label inside, lost a part of other

Time:10-07

Var capture=$(" # capture "). The get (0);//will jq object into a dom object
Html2canvas (capture). Then (canvas=& gt; {
Var canvas=document. The body. The appendChild (canvas)
Var canvaswidth=canvas. Width;
Var canvasheight=canvas. Height;
The console. The log (canvaswidth)
The console. The log (canvasheight)
Var img=Canvas2Image. ConvertToImage (canvas, canvaswidth canvasheight);

})
  • Related