- 博客(1)
- 收藏
- 关注
转载 写vue项目时遇到后端传过来的时间格式问题
这里写自定义目录标题前端转化时间格式 前端转化时间格式 前端接收过来的后端数据,tableData 数据转化成格式为: 做法: var dateee= new Date(tableData[i].addTime).toJSON()//返回 UTC 时区的 ISO 格式日期字符串(由后缀 Z 表示 var newDate=new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ')
2020-09-26 21:44:14
1468
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人