date.after() //若当调用此方法的Date对象在指定日期之后返回true,否则返回false。
date.before() //若当调用此方法的Date对象在指定日期之前返回true,否则返回false。
判断是否过期,lastServiceTime没有超过今日就是过期了.
if (lastServiceTime.before_(_new Date())) {
throw new ExceptionUtil(“该技能已经过期,不能推荐”);
}
让时间为你证明