前端下载csv文件


var str = [

'ssssssssssssssssssssssssssssssssssssssss'

];

 


var uri = 'data:text/csv;charset=utf-8,%EF%BB%BF' + encodeURIComponent(str.join("\n"));
var downloadLink = document.createElement("a");
downloadLink.href = uri;
downloadLink.download = this.columnInfo.userAccount + "详单参数分值.csv";
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink);

上一篇:[Java安全]JDK8u191之后的JNDI注入绕过


下一篇:接口测试1