Members
(inner) EMAIL
email表达式
(inner) ID
身份证号码表达式
(inner) MOBILE_PHONE
手机号码表达式
(inner) URL
url表达式
Methods
(static) isEmail(str) → {boolean}
检测字符串是否邮箱
Parameters:
Name | Type | Description |
---|---|---|
str |
string | 需要检测的字符串 |
Returns:
- Type
- boolean
(static) isId(str) → {boolean}
检测字符串是否身份证号码
Parameters:
Name | Type | Description |
---|---|---|
str |
string | 需要检测的字符串 |
Returns:
- Type
- boolean
(static) isMobilePhone(str) → {boolean}
检测字符串是否手机号码
Parameters:
Name | Type | Description |
---|---|---|
str |
string | 需要检测的字符串 |
Returns:
- Type
- boolean
(static) isUrl(str) → {boolean}
检测字符串是否url
Parameters:
Name | Type | Description |
---|---|---|
str |
string | 需要检测的字符串 |
Returns:
- Type
- boolean