<html> <head> </head> <body> <P><a href="{:U('Index/expUser')}" >导出数据并生成excel</a></P><br/> <form action="{:U('Index/impUser')}" method="post" enctype="multipart/form-data"> <input type="file"/> <input type="hidden" value="tablename"/> <input type="submit" value="导入"/> </form> </body> </html>
最后下载:demo下载