Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex 如何在vue tel输入中应用自定义验证_Regex_Vue.js_Vue Tel Input - Fatal编程技术网

Regex 如何在vue tel输入中应用自定义验证

Regex 如何在vue tel输入中应用自定义验证,regex,vue.js,vue-tel-input,Regex,Vue.js,Vue Tel Input,正如标题所述,在vue tel输入中应用customValidateregex的过程是什么?您可以将customValidate作为列表中的最后一项。我有一个这样的标准设置。但是,当我为电话号码添加一个regex,只允许电话号码以数字和“+”开头时,代码将挂起并终止我的浏览器,customValidate://^\+\d+$//。我的格式正确吗?还是应该采取其他方法?我的正则表达式可以吗?面对同样的问题,您找到解决方案了吗?

正如标题所述,在vue tel输入中应用
customValidate
regex的过程是什么?您可以将
customValidate
作为列表中的最后一项。我有一个这样的标准设置。但是,当我为电话号码添加一个regex,只允许电话号码以数字和“+”开头时,代码将挂起并终止我的浏览器,
customValidate://^\+\d+$//
。我的格式正确吗?还是应该采取其他方法?我的正则表达式可以吗?

面对同样的问题,您找到解决方案了吗?