html2canvas javascript screenshot and upload

后端 未结 3 469
广开言路
广开言路 2021-02-04 12:34

Would it be possible to use html2canvas (This) to take a picture of the user`s screen but also upload the image, get the upload link and send it with ajax to the webserver?

3条回答
  •  既然无缘
    2021-02-04 12:59

    Using the example above, don't forget to add this to the base64url, otherwise it won't work :

    var dataURL = canvas.toDataURL().replace(/.*,/, '');
    

    More info here.

提交回复
热议问题