我在我的角度控制器中下载了一个csv文件:
var blob = new Blob([csvContent.join('')], { type: 'text/csv;charset=utf-8' });
var link = document.createElementNS('http://www.w3.org/1999/xhtml', 'a');
link.href = URL.createObjectURL(blob);
link.download = 'teams.csv';
link.click();
这在Chrome中非常完美,但不是在IE中。浏览器控制台日志说:
HTML7007: One or more blob URLs were revoked by closing the blob for which
they were created. These URLs will no longer resolve as the data backing the
URL has been freed.
这是什么意思,我该如何解决?