秒
获取或设置秒。
接受从 0 到 59 的数字。如果超出范围,它将冒泡到分钟。
dayjs().second() // gets current second
dayjs().second(1) // returns new dayjs object
当前版本 v1.11
更多文档获取或设置秒。
接受从 0 到 59 的数字。如果超出范围,它将冒泡到分钟。
dayjs().second() // gets current second
dayjs().second(1) // returns new dayjs object
Day.js 中文文档 - 粤ICP备14034220号-1