MomentJS教程

MomentJS 操作日期和时间

MomentJS 提供了各种方法来操作时刻对象上的日期和时间。本章详细介绍了所有这些方法。

操作日期和时间的方法

下表显示了 MomentJS 中可用的方法,这些方法有助于根据需要操作日期和时间-
方法和语法
add
moment.add()
subtract
moment.subtract()
startof
moment.startof()
endof
moment.endof()
local
moment.local()
UTC
moment.utc()
UTC Offset
moment.utcOffset()
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4