当前位置:网站首页>dayjs-----时间格式化
dayjs-----时间格式化
2022-08-10 08:22:00 【cc&】
1.安装
npm install dayjs --save2.封装处理方法
methods: {
// str='默认值' str如果不传 读取默认值'YYYY-MM-DD'
formatDate(value, str = 'YYYY-MM-DD') {
return dayjs(value).format(str)
}
}3.模板使用方法
<el-table-column label="入职时间">
<template #default="{ row }">
{
{ formatDate(row.timeOfEntry)}}
</template>
</el-table-column>边栏推荐
- How AliExpress sellers seize product search weight
- iwemeta元宇宙:阿里首任COO:如何打造销售铁军
- placeholder 1
- 人工神经网络工作原理,神经网络的工作原理
- 图像处理用什么神经网络,神经网络提取图片特征
- ATH10 sensor reads temperature and humidity
- 【业务架构】价值链分析:提高客户价值和盈利能力
- It is obvious that a unique index is added, why does it still generate duplicate data?
- raid5的写性能,是不的比raid10快一些?
- uni 小程序腾讯地图polygon背景透明度
猜你喜欢
随机推荐
每日一题,二叉树中增加一行
Introduction to the delta method
winget包管理器
iwemeta元宇宙:阿里首任COO:如何打造销售铁军
winget package manager
深度剖析“八大排序”(上)_ 探寻一些不为人知的细节
Synchronization lock synchronized traces the source
Delphi实现的一个文件在线查询显示下载功能
明明加了唯一索引,为什么还是产生重复数据?
ATH10 sensor reads temperature and humidity
差分、前缀和模板
Relaxation class: the boss will martial arts, who also can not hold up against!The charm of six sigma training
uni 小程序腾讯地图polygon背景透明度
NPU架构与算力分析
张驰课堂:老板会武术,谁也挡不住!六西格玛培训的魅力
UGUI—事件,iTween插件
阿里云数据库 RDS SQL Server 版的服务器绑定域名www.cxsdkt.cn.的呢?
2022-08-01 Advanced Network Engineering (23) Advanced VLAN Technology - VLAN Aggregation, MUX VLAN
FFT模板
[机缘参悟-65]:《兵者,诡道也》-7-三十六计解读-败战计









