Closed xiaoniao closed 8 years ago
Two-dimensional code can be saved into a picture? Because the two-dimensional code display can not be printed out through the browser print function.
function print() { window.print(); }
you can render to canvas and use .toDataUrl()
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
Two-dimensional code can be saved into a picture? Because the two-dimensional code display can not be printed out through the browser print function.
function print() { window.print(); }