Microseer.onPullDownRefresh

移动端提供了下拉刷新的机制

  • 需要在Microseer.ready() 中开启 Microseer.enablePullDownRefresh();
  • 页面中监听用户下拉刷新事件 Microseer.onPullDownRefresh;
  • 当处理完数据刷新后,需要显示调用Microseer.endPullDownRefreshing();

Microseer.endPullDownRefreshing()

eg:

Microseer.ready = function() {
    //激活下拉刷新
    Microseer.enablePullDownRefresh();

    Microseer.onPullDownRefresh = function() {
        document.getElementById('info').innerText = "下拉刷新事件触发";
        Microseer.endPullDownRefreshing();
    }
};

results matching ""

    No results matching ""