新建一个js,叫做 pageAction
写一个方法

pageViewClick:function(event,coustom){
    
    var node = event.node;
    this.pageIndex = node.getComponent(cc.PageView).getCurrentPageIndex();
    cc.log("page index"+this.pageIndex);
    
    
},

然后我把它绑在 层级管理器的 pageview 上
运行以后 浏览器里 console 里获取到了 翻到底几页了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2022-02-02
  • 2021-06-20
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-07-21
相关资源
相似解决方案