如何处理window.location ='URL'的204错误

问题描述 投票:0回答:1

我正在尝试以这种方式导出文件:

exportReportFile: function exportReportFile(url) {
    window.location = url;
}

但是有时候我有204错误。我该如何处理?

javascript download handle window.location
1个回答
0
投票

这意味着您传递给函数的URL返回204错误。

© www.soinside.com 2019 - 2024. All rights reserved.