Vue格式化日期或时间

netget下载Moment.js

 

在需要格式化日期的页面引用:

 

在Vue内,添加一个自定义函数,如:

 

然后在html应用此函数:

 

posted @ 2020-11-06 11:42  Insus.NET  阅读(10130)  评论(0编辑  收藏  举报