Closed Deadpool957 closed 4 years ago
disabledDate(date) { let timestamp = date.getTime(); if (timestamp > new Date().getTime() + 90 24 60 60 1000) { return true }
return false
}
这是禁用90天(大概3个月)的示例,如需精确计算,得你自己根据当前返回的 date 参数推算哦
感谢
disabledDate(date) { let timestamp = date.getTime(); if (timestamp > new Date().getTime() + 90 24 60 60 1000) { return true }
}
这是禁用90天(大概3个月)的示例,如需精确计算,得你自己根据当前返回的 date 参数推算哦