cocos 2.3.2版本
let node = new cc.Node();
node.parent = this.monsterSprite.node;
let sc = node.addComponent(sp.Skeleton);
sc.skeletonData = this.spineData;
sc.setSkin(“default”);
sc.setAnimation(0, ‘newAnimation’, true);
cc.log(node.width, node.height);
在网页上 正常
在iphone上 node.width, node.height 都为0