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