当前位置:网站首页>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>边栏推荐
- If the data of the oracle business table is added, deleted, or modified, will the index of the table write redo and undo?
- navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
- 阿里云数据库 RDS SQL Server 版的服务器绑定域名www.cxsdkt.cn.的呢?
- iwemeta元宇宙:一个娃娃卖9999元,泡泡玛特认为一点也不贵
- PLSQL学习第一天
- Introduction to the C language to realize bubble sort
- 90.(cesium之家)cesium高度监听事件
- In the SQL SERVER database, if the data of the table is added, deleted, or modified, will the index of the table be recorded in the ldf log?
- UGUI - Events, iTween Plugin
- 基于sklearn的决策树应用实战
猜你喜欢

自动化测试框架Pytest(三)——自定义allure测试报告
[Learn Rust together | Advanced articles | RMQTT library] RMQTT message server - installation and cluster configuration

本地生活商家如何通过短视频赛道,提升销量曝光量?

2022-08-01 Advanced Network Engineering (23) Advanced VLAN Technology - VLAN Aggregation, MUX VLAN

初使jest 单元测试

How AliExpress sellers seize product search weight

ATH10 sensor reads temperature and humidity

iwemeta元宇宙:一个娃娃卖9999元,泡泡玛特认为一点也不贵

90. (cesium house) cesium height monitoring events

Introduction to the delta method
随机推荐
DGIOT supports industrial equipment rental and remote control
时序动作定位 | ACGNet:弱监督时序动作定位的动作补充图网络(AAAI 2022)
一文2600字手把手教你编写性能测试用例
Add spark related dependencies and packaging plugins (sixth bullet)
foreach遍历删除元素问题总结
Rust learning: 6.3_ Tuples of composite types
LaTeX出现错误代码Command \algorithmic already defined
day16--抓包工具Charles的使用
二叉树 --- 堆
winget package manager
navicat for mysql 连接时报错:1251-Client does not support authentication protocol requested by server
如何远程调试对方的H5页面
自动化测试框架搭建 ---- 标记性能较差用例
Go-Excelize API源码阅读(十一)—— GetActiveSheetIndex()
CV+Deep Learning——网络架构Pytorch复现系列——classification(三:MobileNet,ShuffleNet)
如何设计神经网络结构,神经网络设计与实现
探索神经网络架构教程视频,设计神经网络的步骤
张驰课堂:老板会武术,谁也挡不住!六西格玛培训的魅力
iwemeta元宇宙:一个娃娃卖9999元,泡泡玛特认为一点也不贵
Pieces of TensorFlow 2.9 (1)