html
<input type="date" [min]="getNowFormatDate()">
js
getNowFormatDate() {
let date = new Date();
//date.setTime(date.getTime()+24*60*60*1000);明天的时间
let year = date.getFullYear();
let month;
month = date.getMonth() + 1;//因为ts代码对变量初识化时类型
let day
day = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;//因为date input框只能识别 YYYY-MM-DD格式
}
if (day >= 0 && day <= 9) {
day = "0" + day;
}
var currentdate = year + "-" + month + "-" + day;
return currentdate;
}