尝试了一下用yii导出,真的特别方便,所以特地介绍一下
需要用composer
项目根目录下运行
1 | composer require --prefer-dist moonlandsoft/yii2-phpexcel |
controller下
1 | use moonland\phpexccel\Excel; |
1 | Excel::export([ |
尝试了一下用yii导出,真的特别方便,所以特地介绍一下
需要用composer
1 | composer require --prefer-dist moonlandsoft/yii2-phpexcel |
1 | use moonland\phpexccel\Excel; |
1 | Excel::export([ |