Giter Site home page Giter Site logo

滑动中 AJAX about swipeslide HOT 7 CLOSED

ximan avatar ximan commented on July 19, 2024
滑动中 AJAX

from swipeslide.

Comments (7)

ximan avatar ximan commented on July 19, 2024

估计是重新调用swipeSlide惹的祸。
你这种情况也可以处理,插件有两个参数firstCallback、callback。第一屏的数据可以写到firstCallback里,每次滑动加载数据写到callback里。再配合function(i,sum,me){}(i为索引值,sum为总和,me为自己)就可以插入指定位置了。
希望可以帮到你

from swipeslide.

wangcongyi avatar wangcongyi commented on July 19, 2024

项目中 第一屏还是要用PHP写的 o(╯□╰)o
function(i,sun,me){} 这个是什么??

from swipeslide.

ximan avatar ximan commented on July 19, 2024

那就只需要用callback了。
function(i,sum,me){}(i为索引值,sum为总和,me为自己)是callback方法,首页参数列表有介绍,例子里也有用到,自己console.log试试。

from swipeslide.

wangcongyi avatar wangcongyi commented on July 19, 2024

插入之后 但是 新的DOM 没有定位 都‘叠’在一起了 所以一开始 我就想重新init下

from swipeslide.

ximan avatar ximan commented on July 19, 2024

总数固定么?如果总数固定,容器可以一开始就创建,这样初始化就把位置排列好啦

from swipeslide.

wangcongyi avatar wangcongyi commented on July 19, 2024

不固定 所有 一开始的时候 我就想重新调用swipeSlide 估计插件不太适合
不过 要不要把你另一个插件 dropload 多加一个功能
除了上下 左右也行 配置参数放开?

from swipeslide.

ximan avatar ximan commented on July 19, 2024

这里就讨论swipeSlide吧,你这个需求挺有意思的,下次更新加上。
感谢反馈

from swipeslide.

Related Issues (18)

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.