Api

MethodParsevarplaceholderdata

OpenAPI > Method > parseVarPlaceholderData

OpenAPI.Method.parseVarPlaceholderData() method

解析文本内变量占位符

Signature:

static parseVarPlaceholderData(text: string, getData?: (((s: any) => number) | ((s: any) => string))[] | null, regex?: RegExp[] | null): string;

Parameters

Parameter

Type

Description

text

string

文本

getData

(((s: any) => number) | ((s: any) => string))[] | null

(Optional) 返回函数

regex

RegExp[] | null

(Optional) 正则表达式

string


Copyright © 2021 - 2025