[removed] Download data to file from content within the page

后端 未结 8 1526
时光说笑
时光说笑 2020-12-13 14:35

setting is the following: I have a homepage where I display a diagram that has been constructed using comma seperated values from within the page. I\'d like to give users th

8条回答
  •  醉梦人生
    2020-12-13 15:02

    The most comprehensive solution I have run across is using FileSaver.js, handling many potential cross-browser issues for you with fallbacks.

    It takes advantage of the Blob object as other posters have done, and the creator even creates a Blob.js polyfill in case you need to support browser versions that don't support Blob

提交回复
热议问题