Did Mini Program quit Mini Program's callback function?

1. For example, I have a situation in which a user collects goods. I will id setStorage until the user launches Mini Program. Then I will request the backend to write data with parameters

.
  1. if I want to do this, do I need to exit Mini Program"s callback function or is there any other way
Mar.20,2021

hide by document
https://developers.weixin.qq.
https://developers.weixin.qq.
should be onHide () / / listening page
Or uninstall the onUnload () / / listening page

the PS: Wechat development document is really bad, and the callback description of this life cycle is actually written on the routing and registration page!


Why do I have to exit to request the background? Can't you ask after you click on the collection?


operate in the onHide () and onUnload () functions of the page

Menu