在header前端加上ob_end_clean() 清空(擦除)缓冲区并关闭输出缓冲
ob_end_clean();
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
在header前端加上ob_end_clean() 清空(擦除)缓冲区并关闭输出缓冲
ob_end_clean();
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');