高考倒计时100天....99天

这个文章发出来已经只有99天了罢。
回想一年前,不知此时此刻我心所思。

或许那时候我心中焦躁吧,我记得那时候成绩下滑的挺厉害的,不过好在没有特别气馁,不算太糟。

或许在想我要填报什么志愿吧,但是,现在看来,那似乎又是命中注定的事情一样,我已经来到这里了…

或许我什么都没想吧,只是在拼命的刷题。

不管最后的结果如何,我能够进入自己喜欢的专业,做自己想做的事情,这就够了吧,(够了吗?我觉得应该是够了)可能数年之后,当我回想起现在这个时刻,我会想起现在的心境,希望到时候,我仍能够说:我不后悔当初的选择。这样就够了。

最后,希望本次面对高考的各位能正常发挥,考出水平。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用Vue.js实现考试倒计时的示例代码: ```html <template> <div> <p :class="time < 600 ? 'red' : time < 1200 ? 'orange' : 'cadetblue'" v-if="time !== null"> <span>{{ days }} {{ hours }} 小时 {{ minutes }} 分钟 {{ seconds }} 秒</span> </p> </div> </template> <script> export default { data() { return { time: null, timer: null }; }, computed: { days() { return Math.floor(this.time / (24 * 60 * 60)); }, hours() { return Math.floor((this.time % (24 * 60 * 60)) / (60 * 60)); }, minutes() { return Math.floor((this.time % (60 * 60)) / 60); }, seconds() { return Math.floor(this.time % 60); } }, mounted() { const examEndTime = new Date("2022-01-01 12:00:00"); // 考试结束时间 const maxDuration = 2 * 60 * 60; // 考试最大允许时长(单位:秒) const examStartTime = new Date("2022-01-01 09:00:00"); // 考试开始时间 const currentTime = new Date(); // 当前时间 const availableTime = Math.floor( (examEndTime - examStartTime) / 1000 - maxDuration ); // 计算可用时间(单位:秒) this.time = availableTime - Math.floor((currentTime - examStartTime) / 1000); // 初始化倒计时时间 this.timer = setInterval(() => { this.time--; if (this.time <= 0) { clearInterval(this.timer); } }, 1000); }, beforeDestroy() { clearInterval(this.timer); } }; </script> <style> .red { color: red; } .orange { color: orange; } .cadetblue { color: cadetblue; } </style> ``` 这段代码使用Vue.js实现了一个考试倒计时组件。根据考试结束时间、考试最大允许时长、考试开始时间和当前时间,计算出做题的可用时间,并通过定时器实现倒计时效果。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值