I now use the angularjs2 framework, typescript + File-Saver to download the table data on the screen and save it to excel
function onDownload (data) {
const blob = new Blob ([$("- sharptable"). Html ()],
{ type: "application/vnd.ms-excel;" });
saveAs (blob, "export.xls");
}
download can proceed normally, but when I open excel, it will prompt me that the file format or file extension is incorrect and whether to continue.
ask the bosses if they have a solution.