摘要: 1. 计算距离下次生日还有多少天 注意这里借助 moment 实现 getBirthdayFun(){ // 首先要获取到今年的生日 let birthdayTime = moment().format('YYYY-') + '12-19' // 通过时间戳 去判断当前的时间戳是否大于今年生日的时间 阅读全文
posted @ 2023-07-01 15:27 大熊丨rapper 阅读(66) 评论(0) 推荐(2) 编辑