摘要:
1.首先会使用 php中的header()的用法 这里可以参考w3school中的PHP header() 函数和php中使用header函数的http头设置 。 在任何实际的输出被发送之前都要调用 header() 函数。 下面就以php输出csv例。 1.定义header()头部输出格式 header("Content-type:application/vnd.ms-excel"); //定义输出的文件类型 header(“content-Disposition:filename=downloaded.pdf”); //定义输出的文件名,也就是设置一个下载类型,下载的时
阅读全文