摘要:
//参数初始化 $filePath = ''; if ($_FILES["file"]["error"] > 0) { returnJSON(ERROR_INVALID, $_FILES["file"]["error"]); } $filePath = $_FILES["file"]["tmp_name"]; //建立reader对象 $this->load->library('PHPExcel'); $PHPReader = 阅读全文
摘要:
//浏览器输出excel header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="dzg_card_info.xlsx"'); header('Cache-Control: max-age=0'); $this->load->library('PHPExcel'); //加载类 阅读全文