Trường · Nanoid

Trường · Nanoid · string.nanoid. Phương thức tạo · Ví dụ

string.nanoid

Cài đặt trình tạo

Tạo dữ liệu để xem kết quả ở đây.

Tham số & Ví dụ

Generates a Nano ID.

string.nanoid(length?: NumberOrRange)
length
The length of the string to generate either as a fixed length or as a length range. Defaults to 21.
length.min
The minimum length of the Nano ID to generate.
length.max
The maximum length of the Nano ID to generate.

Ví dụ

"84qQaJQVGu_hxE7mLzcJb"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản