heiyou-blog
locate=$(document).height()-$(window).height()
times=0
scroller = (cb)->
  if locate<=$(document).height()-$(window).height()
    times=0
    locate+=100
    scroll(0,locate)
    clearTimeout(timer)
    timer=setTimeout("scroller()",54)
    timer
  else
    await sleep 3000, defer()
    times++
    console.log times
    return if times>3
    scroller()
scroller()

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2021-12-20
  • 2022-02-07
  • 2021-08-29
  • 2022-01-07
猜你喜欢
  • 2021-08-30
  • 2021-10-13
  • 2021-10-09
  • 2022-01-14
  • 2022-02-07
  • 2021-07-03
  • 2022-12-23
相关资源
相似解决方案