将后端传给前端的时间截取到年月

运用substring
 
截取到年月
 {{ scope.row.cetDate.substring(0, 7) }}
截取到年
 {{ scope.row.cetDate.substring(0, 4) }}
posted @ 2022-05-12 14:43  joyfulest  阅读(198)  评论(0)    收藏  举报