Skip to content

jesseincn/file-down

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Installation

npm install file-down --save

Usage

import downloadHelper from './DownloadHelper';
downloadHelper.downloadUrl(response.data);
let blob = new Blob([response.data], {type: 'application/vnd.ms-excel'});
let fileName = 'filename.csv';
downloadHelper.downFile(blob, fileName);

About

js文件下载

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published