如题所述,我需要在onUnLoad的时候调用统计接口,但是在朋友圈打开后,必须点击进入小程序,相关的生命周期才会调用,光是在打开的单页内,生命周期不会调用,怎么解决这个问题呢?
微信小程序分享到朋友圈之后打开,打开的单页应用的生命周期是什么?What is the life cycle of the opened single-page application after opening the WeChat applet to Moments?
微信小程序分享到朋友圈之后打开,打开的单页应用的生命周期是什么?如题所述,我需要在onUnLoad的时候调用统计接口,但是在朋友圈打开后,必须点击进入小程序,相关的生命周期才会调用,光是在打开的单页内,生命周期不会调用,怎么解决这个问题呢?
As mentioned in the title, I need to call the statistics interface when onunload is opened. However, after the circle of friends is opened, I must click to enter the applet, and the relevant life cycle will be called. Only in the open single page, the life cycle will not be called. How to solve this problem?
回答:
onUnLoad是在页面销毁后才会调用的啊
你点击进入小程序之后 单页才会执行onUnLoad啊 没毛病的啊
没办法解决
建议好好看下文档。