Home  >  Q&A  >  body text

javascript - ajax asynchronously obtains file stream and automatically downloads it

Excuse me, after I use ajax to asynchronously obtain the file stream, what if I let the browser automatically download the file I obtained?
The detailed explanation is that I want to use ajax to implement the file download function. After I use ajax to request, the background returns me a file stream. How can I let the browser automatically download these file streams into the files I want.

滿天的星座滿天的星座2663 days ago811

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-07-05 11:01:32

    https://scarletsky.github.io/...

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-07-05 11:01:32

    I read your question several times but I still don’t understand it... It would be great if you could explain it in more detail

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-07-05 11:01:32

    http://www.cnblogs.com/cdemo/...

    reply
    0
  • Cancelreply