1.固定写法
<td >{{item.itime | fmtTime}}</td> //item.itime数组里的时间数据
2.全局,固定写法main,js
Vue.filter('fmtTime', function (time) {
let timeObj = new Date(time)
let y = timeObj.getFullYear()
let m = timeObj.getMonth() + 1
let d = timeObj.getDate()
return y + '/' + m + '/' + d
})