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>
|
|
愤怒的骆驼 · sequelize ...· 4 月前 · |
|
|
发财的李子 · System.Data.OracleClie ...· 2 年前 · |
|
|
满身肌肉的甜瓜 · Windows Server 2019 ...· 2 年前 · |
|
|
追风的打火机 · GLCC 开源编程夏令营开营 — ...· 2 年前 · |
|
|
慷慨的包子 · Python学习教程:python爬虫简单的 ...· 2 年前 · |