GithubHelp home page GithubHelp logo

Comments (5)

panjiefeng avatar panjiefeng commented on May 18, 2024

上拉完全没反应,数据“加载中...”的提示也不会出现了

from mescroll.

mescroll avatar mescroll commented on May 18, 2024

如果不想使用上拉加载,只用下拉刷新则配置 down:{callback:downCallback},up:{use:false} 或者up不配置
如果只想用上拉加载,不想用下拉刷新则配置 down:{use:false},up:{auto:true,callback:upcallback}

from mescroll.

mescroll avatar mescroll commented on May 18, 2024

建议结合基础案例 参考文档 配置一下down:{auto:true,callback:downcallback},up:{auto:true,callback:upcallback} 这几个参数 看看效果就能理解了

from mescroll.

panjiefeng avatar panjiefeng commented on May 18, 2024

我试了只要给down的callback加上回调函数就会出错
例如:
down{callback: successCallback}
最后我采取的解决方案如下:
var mescroll = new MeScroll(mescrollId, { down:{ callback: null, offset: 300000, htmlContent: "" }, up: { use:true, callback: getListData, noMoreSize: 5, empty:{ tip: "暂无相关数据~" }, clearEmptyId: null, toTop:{ src: "", offset: 100 } } });

from mescroll.

mescroll avatar mescroll commented on May 18, 2024

要从错误出发解决问题 看看报什么错 是不是down的callback你写了page这个参数
http://www.mescroll.com/api.html

from mescroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.