Skip to content

Home > sculp-js > isPhone

isPhone() function

判断字符串是否为宽松手机格式,即首位为 1 的 11 位数字都属于手机号

Signature:

typescript
isPhone: (value: string) => boolean

Parameters

Parameter

Type

Description

value

string

Returns:

boolean

{boolean}

Released under the MIT License.