loadFile(fileName, content){ // 前端自动生成下载文件
var aLink = document.createElement('a');
var blob = new Blob([content], {
type: 'text/plain'
});
aLink.download = fileName;
aLink.href = URL.createObjectURL(blob);
aLink.click();
URL.revokeObjectURL(blob);
}
网友评论