![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
业务需求解决案例
主要是业务需求解决案例
qq_43057857
这个作者很懒,什么都没留下…
展开
-
moment插件时间戳格式化
原创 2021-01-11 10:06:57 · 739 阅读 · 0 评论 -
处理后端返回时间戳除以1000后的值。前端显示转换且不影响给后端传值准确性。
// 时间戳转时间 formatTime = (timestamp) => { if (timestamp) { const tempTimestamp = (timestamp.toString().length === 13) ? timestamp : timestamp*1000 const time = new Date(te...原创 2019-12-05 15:35:58 · 2058 阅读 · 0 评论