From 56de1dff88c6884dc267476ffbf4ad992add0940 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Tue, 12 Jun 2018 14:42:03 +0800 Subject: [PATCH] no message Former-commit-id: 2db6a2c3ae6846c94a5a83fc4d57a57f15d09fb5 Former-commit-id: 8a391f4e966d76c91333cbd71581c30db0568e92 Former-commit-id: 96add1cebd5611da5a92fad36876e93fb6bdabd7 Former-commit-id: 7da0be812a588221b6767a7533d5f35c18922d20 --- src/pages/demo/plugins/day/index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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')}}

显示