pulltorefresh.js 介绍
一个 小而强大的JavaScript库,旨在为您的webapp提供刷新 功能 。无需 标记 ,高度可定制且无依赖性!
安装
npm install pulltorefreshjs --save-dev
cat https://unpkg.com/pulltorefreshjs@0.1.15/ dis t/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库
pulltorefresh.js官方网站
官方网站: http://boxfactura.com/pulltorefresh.js/
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
查看更多关于pulltorefresh.js的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did175266