📜  垫输入禁用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:31.942000             🧑  作者: Mango

代码示例1

    


class YourComponent {
    inputFormControl = new FormControl({ value: null, disabled: true });
    
    this.inputFormControl.disable();
    this.inputFormControl.enable();
}