Api

StringutilsRandomstring

OpenAPI > StringUtils > randomString

OpenAPI.StringUtils.randomString property

随机字符串

Signature:

static randomString: (length: number, str?: string) => string;

Example

const randomStr = randomString(10) // 返回 'a1b2c3d4e5'

Copyright © 2021 - 2025