📅  最后修改于: 2022-03-11 14:59:31.942000             🧑  作者: Mango
class YourComponent {
inputFormControl = new FormControl({ value: null, disabled: true });
this.inputFormControl.disable();
this.inputFormControl.enable();
}