[성현모] 개선
This commit is contained in:
8
Projects/WebClient/Web.Tra/wwwroot/js/script.js
Normal file
8
Projects/WebClient/Web.Tra/wwwroot/js/script.js
Normal file
@ -0,0 +1,8 @@
|
||||
window.downloadFile = (fileName, base64Data) => {
|
||||
const link = document.createElement('a');
|
||||
link.download = fileName;
|
||||
link.href = "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64," + base64Data;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
};
|
||||
Reference in New Issue
Block a user