https://github.com/mrkou47/pulltorefresh
plugins for iscroll5
https://github.com/mrkou47/pulltorefresh
iscroll jquery-plugin
Last synced: over 1 year ago
JSON representation
plugins for iscroll5
- Host: GitHub
- URL: https://github.com/mrkou47/pulltorefresh
- Owner: MrKou47
- Created: 2016-04-14T17:36:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-14T10:58:57.000Z (about 9 years ago)
- Last Synced: 2025-01-29T22:46:59.219Z (over 1 year ago)
- Topics: iscroll, jquery-plugin
- Language: JavaScript
- Size: 117 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pull-to-refresh
一款基于iscroll5和jquery 的下拉刷新,上拉加载的的插件。
## 使用
```html
$("#wrapper").pulltofresh();
```
## 参数
```js
delector: { //选择器
container: '#wrapper', //iscroller的盒子
headBox: '.head', //头部更新盒子
footBox: '.foot' //上拉刷新盒子
},
scrollSettings: { //给scroll传入的参数
probeType: 3,
mouseWheel: true
},
loadUrl: 'img/ajax-loader.gif', //加载图片的url
arrowUrl: 'img/arrow.png', //下拉刷新图片的url
initScroll: -100, //初始滚动大小
pulltoload: null, // 上拉加载的ajax函数
refresh: null //下拉刷新的ajax函数
};
```