pulltorefresh.js
pulltorefresh.js 介绍
一个小而强大的JavaScript库,旨在为您的webapp提供刷新功能。无需标记,高度可定制且无依赖性!
安装
npm install pulltorefreshjs --save-dev
cat https://unpkg.com/pulltorefreshjs@0.1.15/dist/pulltorefresh.js
使用
const ptr = PullToRefresh.init({
mainElement: 'body',
onRefresh() {
window.location.reload();
},
});
网站地址:http://boxfactura.com/pulltorefresh.js/
GitHub:https://github.com/BoxFactura/pulltorefresh.js
网站描述:移动端下拉刷新Js库