2017-07-31 56 views

回答

0

您可以在組件中使用Reactive Forms,並且只允許在輸入字段中使用Validators.pattern("^\\d+$")(如minlength)中的數字,所需的驗證在此窗體中處理。

相關問題