时间:2021-07-01 10:21:17 帮助过:2人阅读
$excel=new Excel(); $table_name="mk_material_list_edit"; $field=["id"=>"序号","guid"=>"项目代码","name"=>"项目名称"]; $map=["status"=>1]; $map2=["status"=>-1]; $excel->setExcelName("下载装修项目") ->createSheet("装修项目",$table_name,$field,$map) ->createSheet("已删除装修项目",$table_name,$field,$map2) ->downloadExcel(); //快速导入 $getExcelobject=Excel::loadExcel("test.xls"); $sheetName=$getExcelobject->getSheetNames(); dump($sheetName); $sheet = $getExcelobject->getSheetByName($sheetName[0])->toArray(); dump($sheet);
以上就是TP5 Excel导出下载便捷类库的详细内容,更多请关注Gxl网其它相关文章!