Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 laravel 中使用了 maatwebsite excel。导出 excel 将原始数据返回到浏览器而不是下载。但我刷新页面它自动正确下载。下面的第一个原始数据在此处输入图像描述
怎么直接下载?
经过一整天的研究,我明白了这个原因。我使用 pjax 容器的管理面板。所以下载请求无法工作。我添加了 target='_blank' 来下载 actionlink,它起作用了。