this.imgDetail.cnTime = moment(this.imgDetail.atime*1000).fromNow() //英文
<script> //引入moment.js import moment from "moment" //设置语言为中文 moment.locale("zh-cn") </script>
this.imgDetail.cnTime = moment(this.imgDetail.atime*1000).fromNow() //英文
<script> //引入moment.js import moment from "moment" //设置语言为中文 moment.locale("zh-cn") </script>