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

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

用空格替换:

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

 

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

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3