不用mui.init去初始化,
//只有一次调用
//mui.init({
pullRefresh: {
container: '#pullrefresh',
down: {
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
callback: pullupRefresh
}
}
});/
//可多次调用
mui("#pullrefresh").pullRefresh({
down: {
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
callback: pullupRefresh
},
})
转载链接:原文链接