https://www.cnblogs.com/lmyt/p/6013097.html
https://blog.csdn.net/qq_38209578/article/details/81392199
//判断时间是否过期
function judgeTime(time){
var strtime = time.replace("/-/g", “/”);//时间转换
//时间
var date1=new Date(strtime);
//现在时间
var date2=new Date();
//判断时间是否过期
return date1<date2?true:false;
}