驗證台灣電話號碼格式:行動 (09xx) / 市話 (0Xxxx) / 0800 / +886。 含或不含分隔符 (- 空白) 都可。回傳 type 與 area_code。
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
| phone * | string | — |
生の JSON schema
{
"properties": {
"phone": {
"title": "Phone",
"type": "string"
}
},
"required": [
"phone"
],
"title": "validate_phoneArguments",
"type": "object"
}呼び出し方
スターター——パラメータは上表参照
tw_validate_phone({ phone: "…" })