编写背景(TP框架+数据库 dyg表 id user pwd ) 从数据库导出到Excel表格: 复制代码public function add(){$objExcel = new PHPExcel;$objWriter = \PHPExcel_...