請問Pageview如何加sprite頁數?

我用addPage,但是得到error ‘Simulator: /Applications/CocosCreator.app/Contents/Resources/cocos2d-x/simulator/mac/Simulator.app/Contents/Resources/src/jsb_polyfill.js:105:Error: Assert 1605, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#1605 to see details.’
請問如何正確加頁數?

properties: {
       
      
        page1:cc.Sprite,
       
    },


this.temp1.addPage(this.page1);

:disappointed:

:cry:

pageView增加子节点,应该是对content属性addChild吧?

addPage的话,参数应该是一个node

thank you for reply, my addpage object is sprite, sprite is the node right??

sprite is component

:sob:

hi shiled, so how to addpage ? :sob:

this.temp1.addPage(this.page1.node), try try

still not work:sob:

:sob:

error content :child already added. It can’t be added again

I do addpage with other way :
var copypage = cc.instantiate(this.testpage); //copy the node

        this.temp1.addPage(copypage);

but still no work too

try like this?

try like this?

thank you for reply joker, but still not work, i really don’t understand how to add page, so hard for this :sob:

yeah, finally!!! I success addpage now!!

properties: {

page1:cc.Node,

},

var copypage = cc.instantiate(this.page1);

        this.temp1.addPage(copypage);

thank you guys!!! thank you so much!!!

hello,could I kwon what is the ‘temp1’?please