Api

MethodGetrandomstring

OpenAPI > Method > getRandomString

OpenAPI.Method.getRandomString() method

随机字符串

Signature:

static getRandomString(len: number, _charStr?: string): string;

Parameters

Parameter

Type

Description

len

number

随机字符串的长度

_charStr

string

(Optional) 随机的字符串

string

Example

const randomString = OpenAPI.Method.getRandomString(6) // 返回 "aBcDeF"

Copyright © 2021 - 2025