跳到主要内容

add_child

添加子节点

声明

int add_child(object child, string name = nil)

参数

参数名描述
child子节点对象
name子节点名称

返回值

子节点数量(=0表示添加失败)

使用方式

返回文档