var s = cc.instantiate(prefab);
cc.find(s, ‘lu_sign/icon/fold’).getComponent(cc.Label).string = ‘xxxxxx’;
报错,Uncaught TypeError: Cannot read property ‘getComponent’ of null 应该是找不到节点。

var s = cc.instantiate(prefab);
cc.find(s, ‘lu_sign/icon/fold’).getComponent(cc.Label).string = ‘xxxxxx’;
报错,Uncaught TypeError: Cannot read property ‘getComponent’ of null 应该是找不到节点。

反过来也不行,已经试过了
cc.find(‘icon/fold’,s) 根节点的名字不用传
今天我也遇到这个问题,把根节点去掉就解决了。非常感谢