addChild ( child [localZOrder ] [tag ] )
添加子节点,并且可以修改该节点的 局部 Z 顺序和标签。
名称 类型 描述
child Node
A child node
localZOrder optional Number
Z order for drawing priority. Please refer to setZOrder(int)
tag optional Number | String
An integer or a name to identify the node easily. Please refer to setTag(int) and setName(string)
示例:
node.addChild(newNode, 1, 1001);