Skip to content

MrKou47/pulltorefresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pull-to-refresh

一款基于iscroll5和jquery 的下拉刷新,上拉加载的的插件。

使用

  <script src="../iscroll-probe.js"></script>
  <script src="../jquery.js"></script>
  <script src="../pulltofresh.js"></script>
  <script>
    $("#wrapper").pulltofresh();
  </script>

参数

  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函数
};

Releases

No releases published

Packages

No packages published