我已经做到了,但是没用
'phone': new FormControl(null, [Validators.required, Validators.pattern("[0-9]{0-10}")])
我应该改变什么?
尝试一下: