Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何页面加载时 自动触发一次下拉刷新呢?求解! #131

Open
xie765257710 opened this issue Nov 26, 2018 · 5 comments
Open

Comments

@xie765257710
Copy link

有时需要 进入页面 自动下拉刷新 重载数据

@xie765257710
Copy link
Author

比如登陆完 返回上一页,上一页刷新

@xie765257710
Copy link
Author

大佬人呢

@jean-lee
Copy link

有时需要 进入页面 自动下拉刷新 重载数据

autoLoad: true
试了没?

@199dqx
Copy link

199dqx commented May 10, 2019

昨天搞了半天,今天早上头脑清醒的时候,解决了这个问题:
反正我发现的原因是如下:
// 如果文档高度不大于窗口高度,数据较少,自动加载下方数据
/**
* 修改了这里 去掉 autoLoad 的判断 之前发现这里的默认的是False
* _scrollContentHeight - 400 让浏览器的默认高度更小一些
* @param me
*/
function fnAutoLoad(me){
if(me.opts.loadDownFn != ''){
if((me._scrollContentHeight - 400) <= me._scrollWindowHeight){
loadDown(me);

    }
  }
}

@witoooop
Copy link

autoLoad:true,
threshold:50,
加 两个 一起 看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants