时间处理金字教程

1、使用moment

$('#aa1').html(moment().format('YYYY-MM-DD'));
$('#aa2').html(moment().format('HH:mm:ss'));

2、怎么将日期转化为monment的方式。

// return moment(val).format('YYYY年MM月DD日') //自定义方案1,简写:LL 或 ll

 

 

 

posted on 2020-02-05 23:27  漫思  阅读(127)  评论(0编辑  收藏  举报

导航