Trường · Postal code
Trường · Postal code · location.zipCode. Phương thức tạo · Ví dụ
location.zipCode
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Generates random zip code from specified format. If format is not specified, the locale's zip format is used.
location.zipCode(options?: string | { state?: string; format?: string; })- options
- The format used to generate the zip code or an options object.
- options.state
- The state to generate the zip code for. If the current locale does not have a corresponding postcode_by_state definition, an error is thrown.
- options.format
- The optional format used to generate the zip code. By default, a random format is used from the locale zip formats. This won't be used if the state option is specified.
Ví dụ
"16064-3811"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.