disabledDate(time) {
var date = new Date()
var year = date.getFullYear()
var month = date.getMonth() + 1
if (month >= 1 && month <= 9) {
month = '0' + month
}
var currentdate = year.toString() + month.toString()
var timeyear = time.getFullYear()
var timemonth = time.getMonth() + 1
if (timemonth >= 1 && timemonth <= 9) {
timemonth = '0' + timemonth
}
var timedate = timeyear.toString() + timemonth.toString()
return currentdate <= timedate
}
网友评论