报错的的代码:
this.parent.addChild(this.child);
非常简单的添加子节点的代码(也可以理解为添加父级)
运行的时候莫名奇妙的就爆出:
ERROR: Uncaught Error: child already added. It can't be added again, location: src/jsb_polyfill.js:0:0
Simulator: STACK:
Simulator: [0]cc.assert@src/jsb_polyfill.js:56
Simulator: [1]anonymous@src/jsb_polyfill.js:81
Simulator: [2]anonymous@src/jsb_poly