输出html代码时,设置content-type为application/vnd.ms-excel,设置content-disposition为filename={name}.xls,即可把html转换成excel文件汇出