1.0.1 • Published 6 years ago
@chenchunyong/downloadfile v1.0.1
download
采用superagent
下载文件,返回promise对象
使用方法
const download = require('@chenchunyong/downloadfile');
download('xxx', 'xxxx').then(() => {
console.log('下载成功')
}).catch(e => {
console.log(e);
});