一般来说导出excel时
如果是excel97~2003,那么content-type应该设置为:application/vnd.ms-excel,
如果是excel2007以后的,那么content-type应该设置为:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
参考:https://blog.csdn.net/xiaojia_boke/article/details/81140647
一般来说导出excel时
如果是excel97~2003,那么content-type应该设置为:application/vnd.ms-excel,
如果是excel2007以后的,那么content-type应该设置为:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
参考:https://blog.csdn.net/xiaojia_boke/article/details/81140647
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。