mui.init({
pullRefresh: {
container: '#pullrefresh',
down: {
callback: pulldownRefresh
},
up: {
callback: getProjectList
}
}
})
function pulldownRefresh() {
setTimeout(function() {
mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); //refresh completed
mui('#pullrefresh').pullRefresh().refresh(true); //重置上拉加载
initData();
}, 1500);
}
function initData(){
$('XXX').empty();
getProjectList();
}
function getProjectList(){
//ajax
}
0 个回复