请问如何改变perfab中的Label文字

我建立了一个perfab里面有个Label名字为:Lab_Info

在场景里面动态加载:
var tPrefab = cc.instantiate(this.PB_JoinGame);
tPrefab.parent = this.node;
tPrefab.setPosition(0,0);

perfab中的代码:

cc.Class({
extends: cc.Component,

properties: {
    nums:{        
    Lab_Info:cc.Label,
},
onLoad: function () {
    this.Lab_Info.String = "2222222";

    cc.log("Lab_Info.String", this.Lab_Info.String);
},

});
调试的时候发现Lab_Info显示的值没有改变,但是log显示Simulator: Lab_Info.String 2222222 值已经改变了

请问如何解决?

string的首字母s应该用小写吧

谢谢
因为能log出String,误导了我

no 客气:slightly_smiling: