标签:time orm bsp 导入 for nbsp 使用 时间 format
1.安装:npm install moment --save
2.导入:import moment from ‘moment‘;
3.定义全局时间过滤器:
Vue.filter(‘converDate‘,function(value){
return moment(velue).format(‘YYYY-MM-DD‘)
})
4.使用:<span>{{item.addtime | converDate}}<span>
标签:time orm bsp 导入 for nbsp 使用 时间 format
原文地址:https://www.cnblogs.com/huanhuan55/p/9741926.html