mode_edit codeAPI / @angular/formsAsyncValidatorlinkinterface 试验性的interface AsyncValidator extends Validator { validate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> // 继承自 forms/Validator validate(c: AbstractControl): ValidationErrors | null registerOnValidatorChange(fn: () => void)?: void }方法linkvalidate() linkmode_edit codevalidate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>参数cType: AbstractControl.返回值Promise<ValidationErrors | null> | Observable<ValidationErrors | null>