Page.onPullDownRefresh

2020-02-12 16:08 更新

在 Page 中注冊(cè)下拉刷新的監(jiān)聽方法,當(dāng)用戶觸發(fā)下拉刷新時(shí)會(huì)調(diào)用。

?? 注意只有在頁(yè)面的page.json中配置了enablePullDownRefresh: true才能夠開啟下拉刷新


代碼示例

Page({
  onPullDownRefresh() {
    tt.stopPullDownRefresh();
  }
});
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)