rjs-pullload
v1.0.51
Published
下拉刷新及上拉加载
Downloads
14
Maintainers
Readme
下拉刷新及上拉加载
用法
const PullLoad = require('rjs-pullload')
const pullLoad = PullLoad({
pullDown: true,
pullUp: true,
qName: '.pullload',
bodyQName: '.pullload-body',
reqMethod: 'POST',
reqUrl: '',
reqArgs: {
type: '{type}',
page: '{page}',
},
reqAjaxFn: Ajax,
itemRenderFn: function (item, index) {
return `<p>${item.id} ${item.name}</p>`;
}
});
样式引用:
require('rjs-pullload/dist/style.css')
或
<link rel="stylesheet" href="....rjs-pullload/dist/style.css"/>