javascript - How to convert pages into images for sharing in WeChat mini program
ringa_lee2017-06-28 09:28:42
0
3
3113
Hello, we are currently making a small program for business cards. How can we convert a page into a picture in the small program? Is there such a js interface? Thanks, I've tried using canvas, but the applet can't get the dom. .
wx.canvasToTempFilePath(OBJECT)
This? You try it
The subsequent image address can be used
wx.previewImage(OBJECT)
to previewPlease refer to: https://github.com/demi520/wx...
Still draw with canvas, or you can consider server-side generation
Recommend phantomjs