教程 dayjs tutorial

Millisecond

获取或设置毫秒。

传入 0 到 999 的数字。 如果超出这个范围,它会进位到秒。

javascript
dayjs().millisecond(); // gets current millisecond
dayjs().millisecond(1); // returns new dayjs object