cc.find 返回的是 Node,不是 Label
需要再调用 node.getComponent(cc.Label) 才能获得 label
文档写的很清楚:
http://www.cocos.com/docs/creator/scripting/access-node-component.html#--2
cc.find 返回的是 Node,不是 Label
需要再调用 node.getComponent(cc.Label) 才能获得 label
文档写的很清楚:
http://www.cocos.com/docs/creator/scripting/access-node-component.html#--2