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>
|
|
淡定的红薯 · 如何更快地将String转换成Int/Lon ...· 2 年前 · |
|
|
私奔的火车 · flutter, ...· 3 年前 · |
|
|
挂过科的大蒜 · GoPass系列免杀基础(一) - 知乎· 3 年前 · |
|
|
风流倜傥的黄豆 · mysql - How to change ...· 3 年前 · |
|
|
微醺的硬币 · 用深度学习(CNN RNN ...· 3 年前 · |