在 onLoad 的时候获取并设置label组件的string 为什么不会生效啊?

在 onLoad 的时候获取并设置label组件的string 为什么不会生效啊? 出来的还是编辑器设置的默认值

onLoad: function () {
this.titleLabel = cc.find(‘titleLabel’, this.node);
//this.node.getChildByName(“titleLabel”);
//cc.find(“Canvas/payCtrl/titleLabel”)
//this.node.getComponent(cc.Label)
//this.node.getChildByName(“titleLabel”);
//cc.find(“titleLabel”);
// this.node.getComponent(cc.Label);
//this.titleLabel.string=“112223”;
cc.log(“this.titleLabel:”,this.titleLabel,this.titleLabel.string);
this.titleLabel.string = “123455555”;
cc.log(“this.titleLabel:”,this.titleLabel,this.titleLabel.string);
},

cc.find返回的是一个节点吧,Label是一个组件。
this.titleLabel.getComponent(cc.Label).string = “123455555”;

谢谢了,非常感谢