驗證台灣電話號碼格式:行動 (09xx) / 市話 (0Xxxx) / 0800 / +886。 含或不含分隔符 (- 空白) 都可。回傳 type 與 area_code。
Paramètres
| Nom | Type | Description |
|---|---|---|
| phone * | string | — |
Schéma JSON brut
{
"properties": {
"phone": {
"title": "Phone",
"type": "string"
}
},
"required": [
"phone"
],
"title": "validate_phoneArguments",
"type": "object"
}Comment appeler
Amorce — paramètres dans le tableau
tw_validate_phone({ phone: "…" })