Skip to main content

appendChildren 添加多个子元素

appendChildren

类型: MethodDeclaration

所属类: UIElement

定义位置: ui.ts

描述

添加多个子元素

参数 elements: 元素列表

参数

参数名类型描述默认值
elementsArray<UIElement>--

返回值

类型: void

源代码

位置: 第 1238 行

public appendChildren(elements: Array<UIElement>): void {
for (const element of elements) {
this.appendChild(element)
}
}

文档生成时间:2025/7/7 12:07:07