cocos2d-js3.10使用pageview导致黑屏

mobile.app/src/Lobby/lobbyScene.js:22:TypeError: pagelayer.setCustomScrollThreshold is not a function
如上错误,
setCustomScrollThreshold,然而
/*
** * Set custom scroll threshold to page view. If you don’t specify the value, the pageView will scroll when half page view width reached.


@since **v3.2


@param **threshold
** */
setCustomScrollThreshold:
function(threshold){
*
cc
.assert(threshold>0,
“Invalid threshold!”);

this.
_customScrollThreshold = threshold;

this.setUsingCustomScrollThreshold(
true);
},

贴出源码,本人cocosjs小白,希望大神指点

再说明一下,只是原生平台如ios,运行会黑屏,在浏览器中运行,一切OK

好的,明白了,单纯就是没有实现jsb绑定。如其中一个函数getCurPageIndex,这个是UIPageView.js
的源码,但是在jsb绑定中并没有实现这个函数的api,所以在原生平台下面各种没有这个方法。
解决的办法,要么添加jsb绑定,要么就修改js的源码保持跟c++代码的一致!

真的想吐槽,难道cocos里原来开发h5模块的团队都去搞creator了么。。。。js好坑。。。。