diff --git a/src/pages/demo/plugins/day/index.vue b/src/pages/demo/plugins/day/index.vue index 68f9fa08..96afb64a 100644 --- a/src/pages/demo/plugins/day/index.vue +++ b/src/pages/demo/plugins/day/index.vue @@ -13,23 +13,23 @@ {{now.month()}} {{now.date()}} {{now.day()}} - {{now.hour()}} - {{now.minute()}} - {{now.second()}} - {{now.millisecond()}} + {{now.hour()}} + {{now.minute()}} + {{now.second()}} + {{now.millisecond()}}

设置

- {{now.set('month', 6).month()}} - {{now.set('second', 30).second()}} - {{now.set('hour', 4).hour()}} + {{now.set('month', 6).month()}} + {{now.set('second', 30).second()}} + {{now.set('hour', 4).hour()}}

操作

{{now.add(1, 'day').format('YYYY年M月D日 HH:mm:ss')}} {{now.subtract(7, 'year').format('YYYY年M月D日 HH:mm:ss')}} - {{now.startOf('year').format('YYYY年M月D日 HH:mm:ss')}} - {{now.endOf('month').format('YYYY年M月D日 HH:mm:ss')}} + {{now.startOf('year').format('YYYY年M月D日 HH:mm:ss')}} + {{now.endOf('month').format('YYYY年M月D日 HH:mm:ss')}}

显示