当前位置:网站首页>dayjs-----time format
dayjs-----time format
2022-08-10 08:28:00 【cc&】
1. Installation
npm install dayjs --save
2. Encapsulation processing method
methods: {// str='default value' If str is not passed, read the default value 'YYYY-MM-DD'formatDate(value, str = 'YYYY-MM-DD') {return dayjs(value).format(str)}}
3. Template usage method
{{ formatDate(row.timeOfEntry)}}
Official website: Display| Day.js Chinese website
边栏推荐
猜你喜欢
随机推荐
winget package manager
解决win10win7win8系统找不到指定的模块,注册不了大漠插件的问题
Class Notes (7) (1) - #647. Find the root and the child (root)
如何远程调试对方的H5页面
qrcode-----生成二维码
MySQL的用户临时表与内部临时表
Based on STC8G2K64S4 single-chip microcomputer to display analog photosensitive analog value through OLED screen
Obtain - 65 [chances] : "soldiers, subtlety also - 7-36 meter reading - defeat
【FAQ】【Push Kit】推送服务,回执配置一直报错、回执过期修改、怎么删除配置的回执
【Unity入门计划】Collision2D类&Collider2D类
Introduction to the C language to realize bubble sort
NPU architecture and force analysis
90.(cesium之家)cesium高度监听事件
Process management (dynamic)
速卖通卖家如何抓住产品搜索权重
神经网络样本太少怎么办,神经网络训练样本太少
Rust learning: 6.5_Array of composite types
js reduce
placeholder 1
颜色选择器的使用