How to save svg canvas to local filesystem

前端 未结 16 1458
南旧
南旧 2020-11-27 10:10

Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem?

SVG

16条回答
  •  暖寄归人
    2020-11-27 10:11

    To answer my own question:

    Another possibility though not the nicest is to display the serialized contents on the webpage and have the user select, copy and paste that. This after investigating eli grey's solution.

提交回复
热议问题