解决[disabled]="true"与formControlName冲突
import { FormBuilder } from '@angular/forms'; form; constructor(private fb: FormBuilder) { this.form = fb.group({ Name: '', Account: '', Password: '' }); } this.form.disable(); this.form.controls['Account'].disable(); this.form.controls['Password'].disable();