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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37922-2c087.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37922-2c087.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?