前端 导出为Excel 数据源为table表格 table中的字段7-1变成了7月1号解决
原文:https://www.cnblogs.com/xiaonangua/p/11315858.html
https://blog.csdn.net/u010735684/article/details/49147955
解决 table中为 7-1 导出Excel后变成了 7月1号 这个问题
1) 文本:vnd.ms-excel.numberformat:@
2) 日期:vnd.ms-excel.numberformat:yyyy/mm/dd
3) 数字:vnd.ms-excel.numberformat:#,##0.00
4) 货币:vnd.ms-excel.numberformat:¥#,##0.00
5) 百分比:vnd.ms-excel.numberformat: #0.00%
如:
122414323543254354353改之前:
html:

Excel:

改之后:
html:

Excel:


浙公网安备 33010602011771号