跳到主要内容

ApiPlaceholder

表示占位符的类。

属性​

名称类型描述
Indexnumber | undefined返回或设置占位符索引。
TypePlaceholderType返回或设置占位符类型。

方法​

下表列出了可用的方法。

方法返回值描述
GetClassType"placeholder"返回 ApiPlaceholder 类的类型。
GetIndexnumber | undefined返回占位符索引。
GetTypePlaceholderType返回占位符类型。
SetIndexboolean设置占位符索引。
SetTypeboolean设置占位符类型。