Push the Excel document stream to me in the background. How can I convert and download it? Urgent

push the Excel document stream to me in the background. How can I convert and download it? To make an export table function has not been done ah, return a pile of garbled how to solve ah?

Apr.09,2021

$.ajax().then((data)=>{
    let excel = createObjectURL(data);
    //donwloadahrefexcelLink
})

probably restore what you want to do


when I did the download function, it was implemented like this:
request the backend interface after clicking "download". The backend API sets the header-related content when returning the data stream, so that the browser can download the file automatically according to the content returned.
my previous interface is written in Node.js. I'll give you a reference

.
 res.set({
      'Content-Type': 'XXX',
      'Content-Disposition': 'XXXX' 
 });

you can search the setting method of Content-Type and Content-Disposition


get request to try whether it can be downloaded directly with a tag


https://github.com/azl3979858.

import writer from 'file-writer';
writer('a.csv', '\
year,age,status,sex,population\r\n\
1850,20,0,1,1017281\r\n\
1850,20,0,2,1003841\r\n\
',{})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34864-2bf14.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34864-2bf14.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?