Vue解决后台传过来的时间展示时带T

Posted on 2022-04-14 21:16  晓晓晓渡  阅读(739)  评论(0编辑  收藏  举报

用空格替换:

{{scope.row.ctime.toLocaleString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')}}

 

参考作者:https://blog.csdn.net/qq_36090127/article/details/103308296

Copyright © 2024 晓晓晓渡
Powered by .NET 8.0 on Kubernetes