Created
February 25, 2019 07:43
-
-
Save Ding-Fan/105e8f4eab462ee493f5ce14ffe0ba71 to your computer and use it in GitHub Desktop.
Validations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 手机号校验 | |
// https://blog.csdn.net/voidmain_123/article/details/78962164 正则来源 | |
const validationRegExp = RegExp('^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment