//初始化一个栏位并且加入必填校验验证器const name:FormControl = new FormControl({'测试名字', disabled: true },this.CustomValidators());CustomValidators() { return (control: AbstractControl): ValidationErrors | null => { if(control.value.length!=10) { return {Invalid:true} } return null; };}3.表单及元素的基本方法和属性