How to generate a file for download in a Google Chrome Extension?

后端 未结 3 516
长情又很酷
长情又很酷 2020-12-29 15:33

I want to generate a CSV file as the result of some user interactions and then prompt the user to download it. How can I do that?

I don\'t think it\'s possible in st

3条回答
  •  梦毁少年i
    2020-12-29 16:16

    Chrome doesn't provide any help with this, but I think you should be able to trigger a file save dialog using downloadify js library which uses a flash component behind the scenes.

提交回复
热议问题