Comments (7)
估计是重新调用swipeSlide惹的祸。
你这种情况也可以处理,插件有两个参数firstCallback、callback。第一屏的数据可以写到firstCallback里,每次滑动加载数据写到callback里。再配合function(i,sum,me){}(i为索引值,sum为总和,me为自己)
就可以插入指定位置了。
希望可以帮到你
from swipeslide.
项目中 第一屏还是要用PHP写的 o(╯□╰)o
function(i,sun,me){} 这个是什么??
from swipeslide.
那就只需要用callback了。
function(i,sum,me){}(i为索引值,sum为总和,me为自己)
是callback方法,首页参数列表有介绍,例子里也有用到,自己console.log试试。
from swipeslide.
插入之后 但是 新的DOM 没有定位 都‘叠’在一起了 所以一开始 我就想重新init下
from swipeslide.
总数固定么?如果总数固定,容器可以一开始就创建,这样初始化就把位置排列好啦
from swipeslide.
不固定 所有 一开始的时候 我就想重新调用swipeSlide 估计插件不太适合
不过 要不要把你另一个插件 dropload 多加一个功能
除了上下 左右也行 配置参数放开?
from swipeslide.
这里就讨论swipeSlide吧,你这个需求挺有意思的,下次更新加上。
感谢反馈
from swipeslide.
Related Issues (18)
- 建议加个bower.json发布到bower上 HOT 2
- lazyload报错 HOT 2
- 配置参数不可扩展除ul li 之外的其他dom结构 HOT 4
- 为什么不能调整图片的高度呀?
- Is need css style in this plugin? HOT 1
- 手指滑动导致自动滑动失效 HOT 4
- 轮播图在jQuery mobile框架中使用的问题 HOT 1
- 针对ie设置touch-action属性
- ios的微信下,轮播时存在bug HOT 3
- 可以通过索引来指定初始加载第几张图片不? HOT 2
- 动态元素bug HOT 2
- page 里面的元素如果超出一屏,横向滚动无效. HOT 1
- 提个代码的问题 HOT 3
- 手机翻转屏幕横屏的时候图片有时候平行放两张 HOT 3
- 2.0 到3.0 是不是有broken change啊 HOT 5
- 轮播a 标签跳转bug HOT 1
- README.md 文件上的一些问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipeslide.