second()


moment().second(Number);
moment().second(); // 数字
moment().seconds(Number);
moment().seconds(); // 数字

获取或设置秒钟。

接受 0 到 59 之间的数字。 如果超出范围,则它将会冒泡到分钟。

moment().second(Number);
moment().second(); // Number
moment().seconds(Number);
moment().seconds(); // Number

Gets or sets the seconds.

Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the minutes.