首页 > TAG信息列表 > dayValue
10 | JAVA枚举类enum
枚举类 enum public class Main { public static void main(String[] args) { Weekday day = Weekday.SUN; if (day == Weekday.SAT || day == Weekday.SUN) { System.out.println("Work at home!"); } else { Syvue日期时间格式处理:判断时间是几分前,几小时前,几天前
handleDate (value) { let date = new Date(value) let diffValue = new Date().getTime() - date.getTime() // 时间差 let mValue = diffValue / (1000 * 60) // 分 let hValue = diffValue / (1000 * 60 * 60) // 小时 let dayValue = diffValue / (1000 * 60 *