moment 时间格式化

  使用方法;

    引入 moment 的包

    moment(要处理的时间).format(时间的格式);

    vue 的过滤器为例: str 代表要处理的时间  orf 代表 时间的格式

    

猜你喜欢

转载自www.cnblogs.com/shangjun6/p/11317796.html
今日推荐