dayjs根据不同时区显示时间
1.npm安装
npm install dayjs --save
2.使用dayjs
<script>
import dayjs from 'dayjs';
import tz from 'dayjs/plugin/timezone';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
dayjs.extend(tz);
</script>
|
|
灰常酷的鸡蛋 · 墾丁國家公園管理處全球資訊網· 4 月前 · |
|
|
性感的玉米 · 《仙子的修行》(1-115完 同人1-8 ...· 4 月前 · |
|
|
冷冷的汉堡包 · 广东六市推惠民保 ...· 5 月前 · |
|
|
踏实的汉堡包 · 人民日报海外版-人民网· 7 月前 · |
|
|
爱看球的豆腐 · 【学精神 促转变 ...· 1 年前 · |