定义validator 需要实现ValidatorFn 接口. 源码:. export interface ValidatorFn { (c: AbstractControl): ValidationErrors | null; }.
確定! 回上一頁