download('文件下载','a.txt')
function download(str,name){
var blob=new Blob([str],{type:'application/msword'});
var a=document.createElement('a');
var url=window.URL.createObjectURL(blob);
a.href=url;
a.download=name;
a.click()
}