new PhoneUtil()
- Source:
Methods
(static) isMobile(value) → {boolean}
- Source:
是否手机号(中国)
Parameters:
Name | Type | Description |
---|---|---|
value |
string | 被检测内容 |
Returns:
- Type
- boolean
(static) isPhone(value) → {boolean}
- Source:
是否是座机号码或手机号码 (中国)
Parameters:
Name | Type | Description |
---|---|---|
value |
string | 被检测内容 |
Returns:
- Type
- boolean
(static) isTel(value)
- Source:
是否是座机号码(中国)
Parameters:
Name | Type | Description |
---|---|---|
value |
string | 被检测内容 |