In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to do pull-down refresh of Weixin Mini Programs (Mini). The content is detailed and easy to understand. The operation is simple and fast. It has certain reference value. I believe everyone will gain something after reading this article on how to do pull-down refresh of Weixin Mini Programs. Let's take a look at it together.
onPullDownRefresh
Define onPullDownRefresh processing function in Page to listen for user pull-down refresh events of this page.
You need to enable PullDownRefresh in the window option of config.
wx.stopPullDownRefresh stops the pull-down refresh of the current page when the refresh process is complete.
wx.startPullDownRefresh(OBJECT)
Basic library 1.5.0 is supported, and lower versions need to be compatible
Start pull-down refresh, trigger pull-down refresh animation after calling, the effect is consistent with user manual pull-down refresh
Object Parameter Description:
Parameter type Required Description successFunction No Interface call successful callback function failFunction No Interface call failed callback function completeFunction No Interface call ended callback function (successful or failed call will be executed)
success Return parameter description:
Parameter Name Type Description errMsgString Interface Call Result
Example code:
wx.startPullDownRefresh()wx.stopPullDownRefresh()
Stop the current page pulldown refresh.
Example code:
Page({ onPullDownRefresh: function(){ wx.stopPullDownRefresh() }}) About "How to do Weixin Mini Programs (Mini) pull-down Refresh" The content of this article is introduced here. Thank you for reading! I believe everyone has a certain understanding of "how to do Weixin Mini Programs (Mini) pull-down refresh." If you still want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.