摘要: 该方法获取日期的格式为YYYY-MM-DD getDay(day) { var today = new Date(); var targetday_milliseconds = today.getTime() + 1000 * 60 * 60 * 24 * day; today.setTime(ta 阅读全文
posted @ 2022-12-05 09:22 新* 阅读(1361) 评论(0) 推荐(0)
摘要: Vue.js实时显示当前时间: 在<template>里添加 <div>{{date}}</div> 在<script>里添加 export default { data () { date: new Date(new Date().getTime() + 8*3600*1000).toJSON() 阅读全文
posted @ 2022-12-05 09:18 新* 阅读(771) 评论(0) 推荐(0)