Pageview只能获得一次currentPageIndex

新人小白发帖~~> <提前感谢大佬的解答


代码只有一行,但是在控制台里显示完currentPageIndex后会显示ERROR: Uncaught TypeError: Cannot read property ‘getCurrentPageIndex’ of null, location: src/cocos2d-jsb.js:0:0并且疯狂弹出报错

我本地测试没有出现你的问题,能给我个 demo 么?

demo已经发送至您的邮箱~Thanks♪(・ω・)ノ

已经解决~参考代码为 https://blog.csdn.net/qq_41576195/article/details/88407643?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-2