我一直在做一個項目,但被困在這里。我在 .vue 上使用 Jade 模板,我需要顯示當前年份,但我無法做到<template>// Footerfooter#footer.footer.container .row.footer-wrapper .col-md-6.col-sm-6.col-xs-12 .footer-brandimg(src='assets/images/logo-white.png', alt='logo') .col-md-6.col-sm-6.col-xs-12.copyright p a(href='https://www.easycryptocoins.info/') Easycryptos script.? 2018 - {{ new Date().getFullYear() }}| . All rights reserved. </template> `我希望獲得 2018 年版權 -(當年)但我只是剛開始 Easycryptos
如何在.vue項目中顯示當前年份
米琪卡哇伊
2021-08-20 18:30:52