大佬快来帮帮小弟
不要沉了啊
scrollview.node.on(“scroll-to-bottom”,()=>{todo Refresh})
//滑动使用详情
//拖动scrollView和centent到脚本
//1:初始化一个锁为false,防止一直调用这个函数
//2:根据高度算底部,然后调用函数
//3:绝对好使
onSlide:function() {
if (this.skidLock) {
return;
}
if (this.playersContent.height > this.playersBgCenter.height && this.playersContent.y > (this.playersContent.height - this.playersBgCenter.height/2)) {
this.skidLock = true;
// this.onAgaingPlayersBtn();
cc.log(’!!!’)
}
},
是在这里回调吧
是的,拖进去就行,方法放在函数内
直接复制你的代码呢。。。直接崩了
他这个就是scrollview下的content啊
话说2楼的就可以啊何必自己判断高度呢?
大佬 告诉我回调里怎么写 谢谢
比着葫芦画瓢不会么?
playersCentent为content
playersBgCentent为scrollview
这不是控件,这是写了一个方法,报什么错?
大佬加个QQ吧 1322775155
