Angular 4 表单校验2

1. 将表单的方法移动到单独的ts文件夹中   2. code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 export  function mobileValidator(control: FormControl): any {    const myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
相关文章
相关标签/搜索