JavaScript

Intl.Locale.prototype.region プロパティ


編集:2023.01.10 by T.A.

[Edge]。→

Intl.Locale の国コードを表す文字列で返します。

構文
Intl.Locale.region
Intl.Locale Intl.Locale

文字列。→Intl.Locale():tag言語タグ

DA=new Intl.Locale('ja-JP');  //日本語の日本国。
D=DA.region;  //=[string]:JP
DA=new Intl.Locale('ja');  //日本語。
D=DA.region;  //=[undefined]:undefined

Intl.Locale()言語タグ


テスト