且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHP导出XLS文件时出现Google Chrome错误

更新时间:2021-10-31 00:17:15

我在PHP导出代码的标头部分中发现了我的问题.错误和正确的行如下:

I've found out what my problem was in the header section of the PHP export code. The incorrect and correct lines are as follows:

不正确

header("Content-Disposition: attachment;filename=\"".$this->filename."\"");

正确

header("Content-Disposition: attachment; filename=\"".$this->filename."\"");

更正是在附件; 文件名

希望这会有所帮助.