时间:2021-07-01 10:21:17 帮助过:3人阅读
var now = moment();
console.log(now.format('dddd, MMMM Do YYYY, h:mm:ss a'));
代码如下:
ar halloween = moment([2011, 9, 31]); // October 31st
console.log(halloween.fromNow());
代码如下:
var now = moment().add('days', 9);
console.log(now.format('dddd, MMMM Do YYYY'));
代码如下:
var now = moment(); moment.lang('fr');
console.log(now.format('LLLL'));
moment_jb51.rar 打包下载