/**
* 生成下载
* @param {string} fileName 文件名
* @param {string} fileType 文件后缀名
* @param {string} content 文件内容
*/
makeDownload(fileName, fileType, content) {
var pom = document.createElement('a');
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(content));
pom.setAttribute('download', `${fileName}.${fileType}`);
if (document.createEvent) {
var event = document.createEvent('MouseEvents');
event.initEvent('click', true, true);
pom.dispatchEvent(event);
} else {
pom.click();
}
}