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>
|
|
绅士的闹钟 · Linux下套接字详解(二)----套接字S ...· 2 年前 · |
|
|
深情的黑框眼镜 · Python 实现 Unity 资源检测 - 知乎· 2 年前 · |
|
|
灰常酷的手套 · SQLServer分页获取数据的存储过程_5 ...· 2 年前 · |
|
|
聪明的海龟 · 4.抽象类-接口-泛型 · ...· 3 年前 · |
|
|
自信的橡皮擦 · 视频网站或者网站中有视频,如何阻止迅雷劫持下 ...· 3 年前 · |
|
|
深情的黑框眼镜 · Python 实现 Unity 资源检测 - 知乎 2 年前 |