美文网首页
2020-12-13 00:00:00,截取2020-12-13

2020-12-13 00:00:00,截取2020-12-13

作者: 流泪手心_521 | 来源:发表于2020-10-27 13:58 被阅读0次

    1.把他当做字符串来处理
    '2020-12-13 00:00:00'
    js截取

    filters:{
    formatTime(date){
    retrue date.trim().split(" ")[0] //2020-12-13
    }
    }
    

    html

    <div class="info_box">
                <div class="label">成立日期:</div>
                <div class="info">{{businessData.startDate|formatTime}}</div>
     </div>
    

    相关文章

      网友评论

          本文标题:2020-12-13 00:00:00,截取2020-12-13

          本文链接:https://www.haomeiwen.com/subject/elcxvktx.html