Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.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
如何在jquery中使用match手机号码格式?_Jquery_Regex_Validation_Phone Number - Fatal编程技术网

如何在jquery中使用match手机号码格式?

如何在jquery中使用match手机号码格式?,jquery,regex,validation,phone-number,Jquery,Regex,Validation,Phone Number,我的问题是手机号码格式匹配问题 我要检查格式“010-1234-5678”或“010-123-4567”是否正确 我使用了jqueryvalidator.js。但我不知道“正则表达式” 请帮帮我。Var模式=/\d{3}-\d{3,4}-\d{4}/开始学习的好地方

我的问题是手机号码格式匹配问题

我要检查格式“010-1234-5678”或“010-123-4567”是否正确

我使用了jqueryvalidator.js。但我不知道“正则表达式”


请帮帮我。

Var模式=/\d{3}-\d{3,4}-\d{4}/

开始学习的好地方