Closed gyrate closed 8 years ago
RT。 $('#btn').bind('click',function(){ fullpage.go(3); }) //不能正常执行
$('#btn').bind('click',function(){ fullpage.go(3); }) //不能正常执行
当前解决方法为创建周期函数不断地触发,直到正常执行。
$('#btn').bind('click',function(){ var _inter = setInterval(function () { if (me.myPages.thisPage() !== 3) { me.myPages.go(3); }else{ clearInterval(_inter); } }, 300); `}
$('#btn').bind('click',function(){
if (me.myPages.thisPage() !== 3) {
}else{
}
$('#btn').bind('click',function(){ 执行内容 })
这里面也应该用 me.myPages.go(3); 这样的吧?
并不能正常地执行,必须不断点击直到成功,在android尤其明显。
移动端的话要绑定 ontouchend 哦
RT。
$('#btn').bind('click',function(){ fullpage.go(3); }) //不能正常执行
当前解决方法为创建周期函数不断地触发,直到正常执行。
$('#btn').bind('click',function(){
var _inter = setInterval(function () {if (me.myPages.thisPage() !== 3) {
me.myPages.go(3);}else{
clearInterval(_inter);}
}, 300); `}