Trường · Country Code
Trường · Country Code · location.countryCode. Phương thức tạo · Ví dụ
location.countryCode
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
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'.
Ví dụ
"NO"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.