摘要: 1、计算距离下次生日还有多少天 getBirthdayFun(){ // 首先要获取到今年的生日 let birthdayTime = moment().format('YYYY-') + '11-11 ' // 通过时间戳 去判断当前的时间戳是否大于今年生日的时间戳 if (moment().un 阅读全文
posted @ 2022-11-02 09:21 是小刘同学呀 阅读(46) 评论(0) 推荐(0)