Home > front end >  Mobile terminal how to download URL. CreateObjectURL links created?
Mobile terminal how to download URL. CreateObjectURL links created?

Time:09-18

Var a=document. The createElement method (' a ');
A. d. ownload=fileName;
Var blob=new blob ([fileData]);
Var SRC=https://bbs.csdn.net/topics/window.URL.createObjectURL (blob);
A.h ref=https://bbs.csdn.net/topics/src;
A.t extContent='Click here to download' + fileName + "!" ;

Can be downloaded on the computer side, but not the mobile end!

Ask what other way can download URL. CreateObjectURL?
Thank you very much, can have ideas

CodePudding user response:

Any reference: https://www.codetd.com/article/9008440

CodePudding user response:

Thank you very much! But my data is generated on the client, also need to be uploaded to the server, and then download? A little against humanity ah, ha ha thank you again for

In addition
Blob data of a class how to use JS uploaded to the server, is also a big problem
  • Related