javascript - How to convert pages into images for sharing in WeChat mini program
ringa_lee
ringa_lee 2017-06-28 09:28:42
0
3
3030

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. .

ringa_lee
ringa_lee

ringa_lee

reply all (3)
为情所困

wx.canvasToTempFilePath(OBJECT)
This? You try it

The subsequent image address can be usedwx.previewImage(OBJECT)to preview

    伊谢尔伦

    Please refer to: https://github.com/demi520/wx...

    Still draw with canvas, or you can consider server-side generation

      淡淡烟草味

      Recommend phantomjs

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!