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>
|
|
温柔的火车 · 您如何使用MotionEvent.ACTIO ...· 1 年前 · |
|
|
无邪的小蝌蚪 · MySQL中Spring管理的事务开启后不提 ...· 1 年前 · |
|
|
绅士的咖啡 · HttpClient/HttpUrlConn ...· 2 年前 · |
|
|
大力的油条 · 这个代码int函数无返回值且开-O2,for ...· 3 年前 · |
|
|
爱运动的投影仪 · 不能将类型 string 分配给类型 ...· 3 年前 · |