1.获取PHPExcel2.添加如下方法:functionExcel_Export($filename,$data,$sheet){error_reporting(E_ALL);ini_set('display_errors','On');/**Includepath**/set_include_path(get_include_path().PATH_SEPARATOR.'../Classes/');/**PHPExcel*/include'api/excel/PHPExcel.php';/