Country Code生成器

Country Code生成器 · location.countryCode. 生成方法 · 示例

location.countryCode

生成设置

生成后在这里查看结果。

参数 & 示例

Returns a random ISO_3166-1 country code.

location.countryCode(options?: 'alpha-2' | 'alpha-3' | 'numeric' | { variant?: 'alpha-2' | 'alpha-3' | 'numeric'; })
options
The code to return or an options object.
options.variant
The variant to return. Can be one of: - 'alpha-2' (two-letter code) - 'alpha-3' (three-letter code) - 'numeric' (numeric code) Defaults to 'alpha-2'.

示例

"NO"

请在测试环境使用合成数据。

相关生成器

探索场景模板