3篇文章 作者: TG
TG · 2017-04-16
TG · 2017-04-12
<a download="data.csv">var getData= "\ufeff" + "填写数据abc";var blob = new Blob([getData], { type: 'text/csv,charset=UTF-8' }); document.querySelector("#getData").href = URL.createObjectURL(blob);
<a download="data.csv">
var getData= "\ufeff" + "填写数据abc";
var blob = new Blob([getData], { type: 'text/csv,charset=UTF-8' }); document.querySelector("#getData").href = URL.createObjectURL(blob);
TG · 2017-04-01