亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

大家一起看看這段js代碼,有引用skrollr.js,到底做了哪些事情?

大家一起看看這段js代碼,有引用skrollr.js,到底做了哪些事情?

翻過高山走不出你 2018-10-20 08:10:09
一段代碼jsskrollr.js
查看完整描述

1 回答

?
吃雞游戲

TA貢獻1829條經驗 獲得超7個贊

你去查上下文 data.curTop 和 data.lastTop 的取值

然后官方文檔里有描述

A listener function that gets called each time right before we render everything. The function will be passed an object with the following properties:

{    curTop: 10, //the current scroll top offset
    lastTop: 0, //the top value of last time
    maxTop: 100, //the max value you can scroll to. curTop/maxTop will give you the current progress.
    direction: 'down' //either up or down}

Returning false will prevent rendering.

當返回 false 停止渲染


查看完整回答
反對 回復 2018-11-07
  • 1 回答
  • 0 關注
  • 452 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號